[tor-bugs] #6341 [Tor Relay]: connection_or_flush_from_first_active_circuit() wants refactoring (was: "if (circ != conn->active_circuits)" in connection_or_flush_from_first_active_circuit() is wrong?)

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sat Jul 7 18:04:40 UTC 2012


#6341: connection_or_flush_from_first_active_circuit() wants refactoring
-----------------------+----------------------------------------------------
 Reporter:  arma       |          Owner:     
     Type:  defect     |         Status:  new
 Priority:  normal     |      Milestone:     
Component:  Tor Relay  |        Version:     
 Keywords:             |         Parent:     
   Points:             |   Actualpoints:     
-----------------------+----------------------------------------------------

Comment(by arma):

 Apparently no code in that path can change conn->active_circuits, so
 checking whether it's changed makes no sense. That's what this is about.

 Our friendly bug reporter also points out that circ is
 conn->active_circuits in the case of !ewma_enabled, but it's based on
 conn->active_circuit_pqueue in the case of ewma_enabled. Sure seems like
 some of this code didn't get cleaned up when we added the ewma patch.

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


More information about the tor-bugs mailing list