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
failed incoming SSL connection stays open forever #62118
Comments
Important: only Python2 versions are affected. Python3 works OK. Having a server with SSLSocket waiting for connections, the incoming connection, failed on automatic do_handshake(), stays open forever — accept() raises the SSLError and does not return client connection socket. Steps to reproduce server side:
client side:
How reproducible In all 146% Expected results
Actual results
|
Possible solution would be something like that in SSLSocket.do_handshake():
|
Thanks for reporting. For maximum backwards compatibility, the safer fix is to close the socket only in SSLSocket.accept(). |
New changeset 85e5a93e534e by Antoine Pitrou in branch '2.7': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: