-
Notifications
You must be signed in to change notification settings - Fork 320
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Occasionally hangs in ssl do_handshake() #13
Comments
Ok so it appears its taking too long to complete and not timing out. I'll look at a fix. |
Very hard to reproduce. |
It is. I solved it in my system with the following: timeout.py
and then throwing a "@timeout(5)" decorator on the decorateSocket function in SimpleWebServerSocket.py. From what I understand this isn't platform independent though. |
Ok glad you solved it for your system. I will have a look and see if this can be merged and if its a good idea. Thanks. |
I've been experiencing a lot of "hangs" recently, where the server simply stops responding to anything. I set my code to dump the stack on SIGINT I get the following:
Looking around Google, it seems that a number of people (particularly on Debian and using OpenSSL, which is my setup) are experiencing occasional hangs in
ssl.py
'sdo_handshake()
so this isn't really a SimpleWebSocketServer issue. However, the only solution I've found so far is to modifySimpleWebSocketServer.py
to set a timeout on thedecorateSocket()
call, using something akin to what is suggested here: http://stackoverflow.com/a/2282656/146587The text was updated successfully, but these errors were encountered: