]> git.ipfire.org Git - thirdparty/tor.git/commit
New UserspaceIOCPBuffers option to set SO_{SND,RCV}BUF to zero
authorNick Mathewson <nickm@torproject.org>
Fri, 18 Nov 2011 22:43:03 +0000 (17:43 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 18 Nov 2011 22:43:03 +0000 (17:43 -0500)
commit6e6a6612966d7ea9ad3d89bb5073ef400539b2a7
tree41fb91c01c4ddb324f40d6714fa94dd453e6c5ff
parent6a6233b70b4b496834196960aef896da33d13331
New UserspaceIOCPBuffers option to set SO_{SND,RCV}BUF to zero

When running with IOCP, we are in theory able to use userspace-
allocated buffers to avoid filling up the stingy amount of kernel
space allocated for sockets buffers.

The bufferevent_async implementation in Libevent provides this
ability, in theory.  (There are likely to be remaining bugs).  This
patch adds a new option that, when using IOCP bufferevents, sets
each socket's send and receive buffers to 0, so that we should use
this ability.

When all the bugs are worked out here, if we are right about bug 98,
this might solve or mitigate bug 98.

This option is experimental and will likely require lots of testing
and debugging.
changes/UserspaceIOCPBuffers [new file with mode: 0644]
src/or/config.c
src/or/main.c
src/or/or.h