Message125081
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. |
|
Date |
User |
Action |
Args |
2011-01-02 19:52:18 | apollo13 | set | recipients:
+ apollo13 |
2011-01-02 19:52:17 | apollo13 | set | messageid: <1293997937.94.0.348375754935.issue10808@psf.upfronthosting.co.za> |
2011-01-02 19:52:12 | apollo13 | link | issue10808 messages |
2011-01-02 19:52:11 | apollo13 | create | |
|