aboutsummaryrefslogtreecommitdiff
path: root/contrib/torctl.in
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2010-10-13 15:05:06 -0400
committerNick Mathewson <nickm@torproject.org>2010-10-13 15:05:06 -0400
commitcbda016bc5f588351900433835bca912efeb41c4 (patch)
treef3785a2ace9e2e1cdb27892b263fb7a87bd2d66e /contrib/torctl.in
parent1c6649418df97803daa53c1e6a83a61f4cc1b162 (diff)
downloadtor-cbda016bc5f588351900433835bca912efeb41c4.tar.gz
tor-cbda016bc5f588351900433835bca912efeb41c4.zip
Send END cells on bufferevent tunneled directory conns
Our old code correctly called bufferevent_flush() on linked connections to make sure that the other side got an EOF event... but it didn't call bufferevent_flush() when the connection wasn't hold_open_until_flushed. Directory connections don't use hold_open_until_flushed, so the linked exit connection never got an EOF, so they never sent a RELAY_END cell to the client, and the client never concluded that data had arrived. The solution is to make the bufferevent_flush() code apply to _all_ closing linked conns whose partner is not already marked for close.
Diffstat (limited to 'contrib/torctl.in')
0 files changed, 0 insertions, 0 deletions