tor/src
Nick Mathewson 81fe1934af Fix a bufferevent-related bug that killed tunneled dirserv conns
Because tunneled connections are implemented with buffervent_pair,
writing to them can cause an immediate flush.  This means that
added to them and then checking to see whether their outbuf is
empty is _not_ an adequate way to see whether you added anything.
This caused a problem in directory server connections, since they
would try spooling a little more data out, and then close the
connection if there was no queued data to send.

This fix should improve matters; it only closes the connection if
there is no more data to spool, and all of the spooling callbacks
are supposed to put the dirconn into dir_spool_none on completion.

This is bug 3814; Sebastian found it; bugfix on 0.2.3.1-alpha.
2011-08-26 16:10:17 -04:00
..
common Add write watermarks to filtered bufferevents. 2011-08-24 17:31:37 -04:00
config Merge remote-tracking branch 'origin/maint-0.2.1' into maint-0.2.2 2011-08-08 17:21:21 -04:00
or Fix a bufferevent-related bug that killed tunneled dirserv conns 2011-08-26 16:10:17 -04:00
test Clean up bridge-stats code. 2011-08-04 21:18:19 +02:00
tools Re-order tor_fw_helper_LDADD flags so that they work 2011-08-01 11:05:49 -04:00
win32 Initial patch to build Tor with msvc and nmake 2011-08-01 12:36:59 -04:00
Makefile.am Move testing code into new src/test directory. 2009-09-23 00:24:43 -04:00