[issue9211] Cannot close socket after ssl handshake failed

2010-07-09 Thread Christian Hager
New submission from Christian Hager : When running a SSL socket server in Python 2.5 or 2.6 (didn't try with newer versions), new connections are setup with "ssl.wrap_socket()". Everything works fine if I connect a client with SSL, but if I just telnet to the server it's n

[issue9211] Cannot close socket after ssl handshake failed

2010-07-09 Thread Christian Hager
Christian Hager added the comment: Sorry for posting that issue -- I was able to solve it with newsock.shutdown(socket.SHUT_WR) ("newsock.shutdown(socket.SHUT_RD)" doesn't work for that). # SSL Setup try: sslsock = ssl.wrap_socket(newsock, server_side=True, certfi