[tor-bugs] #2812 [Torctl]: TorCtl Zombie Connections

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Tue Mar 29 15:44:23 UTC 2011


#2812: TorCtl Zombie Connections
--------------------+-------------------------------------------------------
 Reporter:  atagar  |          Owner:              
     Type:  defect  |         Status:  needs_review
 Priority:  normal  |      Milestone:              
Component:  Torctl  |        Version:              
 Keywords:          |         Parent:              
   Points:          |   Actualpoints:              
--------------------+-------------------------------------------------------

Comment(by atagar):

 Ack, this is worse than I thought. There's a general failure with the
 mechanism by which TorCtl connections are released. Even when successfully
 connected the close() method does not cause it to release from the control
 port so the following:

 >>> from TorCtl import TorCtl
 >>> conn = TorCtl.connect()
 >>> conn.close()
 INFO[Tue Mar 29 08:43:32 2011]:Event loop received close message.
 >>> conn = TorCtl.connect()
 >>> conn.close()
 INFO[Tue Mar 29 08:43:35 2011]:Event loop received close message.

 Results in two connections remaining to the control port for the life of
 the python process. I'll attach an updated patch to address this.

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


More information about the tor-bugs mailing list