[tor-bugs] #2756 [Tor Relay]: Send stream-level sendme when outbuf is low: don't wait for it to empty!

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Mon Mar 14 21:30:08 UTC 2011


#2756: Send stream-level sendme when outbuf is low: don't wait for it to empty!
-----------------------+----------------------------------------------------
 Reporter:  nickm      |          Owner:                    
     Type:  defect     |         Status:  new               
 Priority:  normal     |      Milestone:  Tor: 0.2.2.x-final
Component:  Tor Relay  |        Version:                    
 Keywords:             |         Parent:                    
   Points:             |   Actualpoints:                    
-----------------------+----------------------------------------------------
 Right now we consider sending an stream-level SENDME under two conditions:
  * We get a data cell on that stream.
  * We have completely flushed the outbuf for that stream.

 But suppose that the sender has exhausted its quota of cells.  We actually
 are _willing_ to send a SENDME cell before we've flushed everything down
 to 10*RELAY_PAYLOAD_SIZE (and we should, for throughput).  So we should
 add another check that happens when we flush data, to see if we have
 drained enough to send a stream-level relay cell.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/2756>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list