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 apollo13
Recipients apollo13
Date 2011-01-02.19:52:11
SpamBayes Score 2.98996e-06
Marked as misclassified No
Message-id <>
If I use the server code in the attachment I get this error in unwrap:

Traceback (most recent call last):
  File "", line 23, in <module>
  File "", line 13, in deal_with_client
    s = connstream.unwrap()
  File "/usr/lib/python3.1/", line 302, in unwrap
    s = self._sslobj.shutdown()
socket.error: [Errno 0] Error

This error message is imo far from optiomal as it gives no clue whatsoever. My Openssl version is: 'OpenSSL 0.9.8o 01 Jun 2010'. Aside from that connstream.close() doesn't close the underlying socket (as seen in Reproduceable with py2.6 and 2.7). The only way to properly close the connection now is:

connstream.close(); newsocket.close()
del newsocket; connstream.close()
Maybe the docs should point that out more prominent.

If you need more info just tell me.
Date User Action Args
2011-01-02 19:52:18apollo13setrecipients: + apollo13
2011-01-02 19:52:17apollo13setmessageid: <>
2011-01-02 19:52:12apollo13linkissue10808 messages
2011-01-02 19:52:11apollo13create