This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Peter.Saveliev
Recipients Peter.Saveliev
Date 2013-05-06.14:27:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1367850452.92.0.464255806144.issue17918@psf.upfronthosting.co.za>
In-reply-to
Content
Important: only Python2 versions are affected. Python3 works OK.
Possibly related issue: http://bugs.python.org/issue12378 (differs: see the line above)


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:

1. create a SOCK_STREAM socket
2. wrap it with wrap_socket()
3. listen()
4. accept()

client side:

1. telnet to this port
2. enter any random text

How reproducible
================

In all 146%

Expected results
================

1. Incoming connection is closed and client disconnected

Actual results
==============

1. On the server side, due to exception, the reference to the incoming connection gets lost.
2. The client stays connected as long as the server operates.
History
Date User Action Args
2013-05-06 14:27:32Peter.Savelievsetrecipients: + Peter.Saveliev
2013-05-06 14:27:32Peter.Savelievsetmessageid: <1367850452.92.0.464255806144.issue17918@psf.upfronthosting.co.za>
2013-05-06 14:27:32Peter.Savelievlinkissue17918 messages
2013-05-06 14:27:32Peter.Savelievcreate