tor/changes/bug2756
Nick Mathewson 1d36a8e9ae Consider sending stream-level SENDME cells on partial flushes.
Right now, we only consider sending stream-level SENDME cells when we
have completely flushed a connection_edge's outbuf, or when it sends
us a DATA cell.  Neither of these is ideal for throughput.

This patch changes the behavior so we now call
connection_edge_consider_sending_sendme when we flush _some_ data from
an edge outbuf.

Fix for bug 2756; bugfix on svn r152.
2011-03-14 17:48:45 -04:00

12 lines
599 B
Plaintext

o Minor bugfixes (spec conformance, performance):
- We now ask the other side of a stream (the client or the exit)
for more data on that stream when the amount of queued data on
that stream dips low enough. Previously, we wouldn't ask the
other side for more data until either it sent us more data
(which it wasn't supposed to do if it had exhausted its
window!) or until we had completely flushed all our queued
data. Fixing this should improve throughput. Fixes bug 2756;
bugfix on the earliest released versions of Tor (svn commit
r152).