[tor-bugs] #6234 [Stem]: stem.socket.ControlSocket.is_alive() should check if socket is open explicitly

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Mon Jul 9 17:10:37 UTC 2012


#6234: stem.socket.ControlSocket.is_alive() should check if socket is open
explicitly
------------------------+---------------------------------------------------
    Reporter:  gsathya  |       Owner:  atagar           
        Type:  defect   |      Status:  needs_information
    Priority:  normal   |   Milestone:                   
   Component:  Stem     |     Version:                   
  Resolution:           |    Keywords:                   
      Parent:           |      Points:                   
Actualpoints:           |  
------------------------+---------------------------------------------------

Comment(by atagar):

 Stem's Controller class has an is_alive() method which simply calls its
 socket's is_alive(). You're welcome to add a 'test_connection' argument
 (defaulted to False) which does a 'GETINFO version' check. This, of
 course, will be problematic if we aren't yet authenticated but you can
 note that in the pydocs.

 If you go with this then please cite this ticket via a comment in the code
 so we know that there may be a PING method in the future.

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


More information about the tor-bugs mailing list