[tor-bugs] #8387 [Tor]: Unbuilt one-hop circuits sometimes hang around forever

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Mar 27 22:40:48 UTC 2013


#8387: Unbuilt one-hop circuits sometimes hang around forever
------------------------+---------------------------------------------------
 Reporter:  mikeperry   |          Owner:  mikeperry         
     Type:  defect      |         Status:  assigned          
 Priority:  normal      |      Milestone:  Tor: 0.2.4.x-final
Component:  Tor         |        Version:                    
 Keywords:  tor-client  |         Parent:                    
   Points:              |   Actualpoints:                    
------------------------+---------------------------------------------------

Comment(by atagar):

 > Do we have any ability to write a stem or torperf to watch for this and
 other cases of leaked/unculled circuits? Such a stress test would making
 gathering more instances of this easier.

 I'm not sure if I completely follow. The trouble is that tor continually
 makes circuits and should reclaim them when they grow above a certain pool
 size, but the reclamation isn't working. Is that right? If so then are you
 looking for something like the following? (pardon typos, not actually ran)

 {{{
 import stem.control

 with stem.control.from_port() as controller:
   controller.authenticate()

   for i in xrange(50):
     controller.new_circuit()

   circ_count = len(controller.get_circuits())

   # not sure of the actual pool size...
   if circ_count > 5:
     print "too many circuits, we have %i... :(" % circ_count
 }}}

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


More information about the tor-bugs mailing list