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.9899575e-06
Marked as misclassified No
Message-id <1293997937.94.0.348375754935.issue10808@psf.upfronthosting.co.za>
In-reply-to
Content
If I use the server code in the attachment I get this error in unwrap:

Traceback (most recent call last):
  File "server.py", line 23, in <module>
    deal_with_client(connstream)
  File "server.py", line 13, in deal_with_client
    s = connstream.unwrap()
  File "/usr/lib/python3.1/ssl.py", 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 http://bugs.python.org/issue10127 Reproduceable with py2.6 and 2.7). The only way to properly close the connection now is:

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

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