[issue17918] failed incoming SSL connection stays open forever

Peter Saveliev report at bugs.python.org
Mon May 6 17:30:01 CEST 2013


Peter Saveliev added the comment:

Possible solution would be something like that in SSLSocket.do_handshake():

    try:
        self._sslobj.do_handshake()
    except SSLError as e:  # or even any Exception?
        self._sock.close()
        raise e

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17918>
_______________________________________


More information about the Python-bugs-list mailing list