constrained socket buffers patch

coderman coderman at
Fri Jul 13 09:59:36 UTC 2007

On 7/13/07, Juliusz Chroboczek <Juliusz.Chroboczek at> wrote:
> ...
> There is another issue, which doesn't appear in the above.  TCP is
> extremely sensitive to packet loss when the window is smaller than
> 4 packets (fast retransmit doesn't work in that case).  So could
> I suggest a default value for ConstrainedSockSize of 8 kB?

this is a good idea.  16k might be even better if it worked reliably
(the usual default is 32 to 64k).

i've updated the patch to provide better documentation on this option
in the man page and set the default to 8k per your suggestion.[0]

one last note: this should work on win32 sockets and may help reduce
the windows buffer problem. [1]

any feedback testing this patch on vservers or win32 is appreciated.

best regards,

0. updated constrained socket buffers patches:

1. "Windows Buffer Problems (WSAENOBUFS)"

More information about the tor-dev mailing list