[tor-bugs] #13513 [Tor]: Tor randomly hangs

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Dec 12 17:05:24 UTC 2014


#13513: Tor randomly hangs
-------------------------+----------------------------------
     Reporter:  Giova84  |      Owner:
         Type:  defect   |     Status:  needs_information
     Priority:  normal   |  Milestone:  Tor: 0.2.???
    Component:  Tor      |    Version:  Tor: 0.2.3.25
   Resolution:           |   Keywords:  tor-relay haiku beos
Actual Points:           |  Parent ID:
       Points:           |
-------------------------+----------------------------------

Comment (by cypherpunks):

 Could you to test client if tls connection dropped just after client sent
 hello.
 Simplest way to test it with custom fake bridge, using code like this:
 {{{
 #!/usr/bin/env python

 import socket
 import sys


 def create_server(ip,port):
         sock_rc=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
         sock_rc.bind((ip,port))
         sock_rc.listen(10)
         while True:
                 connection,addr_info=sock_rc.accept()
                 data = connection.recv(1)
                 connection.close()

 if __name__=='__main__':
         try:
                 ip="127.0.0.1"
                 port=4433
                 create_server(ip,port)
         except Exception,e:
                 sys.stdout.write('Error on create server\n')
 }}}
 It's reading 1 byte of client hello and then closing socket, triggering
 rst packet.
 Add to torrc file:
 {{{
 UseBridges 1
 Bridge 127.0.0.1:4433
 }}}
 Interesting to know what openssl reports
 ("connection_tls_continue_handshake():" line of logs) with such bridge for
 your case.

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


More information about the tor-bugs mailing list