[PATCH] Maintain outgoing TCP meta buffer

Guus Sliepen guus at tinc-vpn.org
Sat Jan 14 16:33:24 CET 2006


On Fri, Jan 13, 2006 at 04:41:38PM -0800, Scott Lamb wrote:

> Here's a patch that does the steps I mentioned in my last email:
> 
> - remove BlockingTCP
> - make send_meta return true on EWOULDBLOCK
> - add logic to main_loop to watch for write availability of meta  
> connections with non-empty buffers and flush them.

Adding a buffer and testing for writablity will certainly prevent the
problems that make BlockingTCP necessary. But, how large do we allow the
buffers to grow? What do we do when it reaches a limit?

-- 
Met vriendelijke groet / with kind regards,
    Guus Sliepen <guus at sliepen.eu.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://brouwer.uvt.nl/pipermail/tinc-devel/attachments/20060114/689add14/attachment.pgp


More information about the tinc-devel mailing list