[issue8108] test_ftplib fails with OpenSSL 0.9.8m
Antoine Pitrou
report at bugs.python.org
Tue Apr 6 13:11:16 CEST 2010
Antoine Pitrou <pitrou at free.fr> added the comment:
> What happens if you move the SSL shutdown() call in handle_close()
> method and leave handle_error() unchanged?
I get occasional crashes such as the following:
Exception in thread Thread-60:
Traceback (most recent call last):
File "/home/antoine/cpython/newssl/Lib/threading.py", line 530, in __bootstrap_inner
self.run()
File "/home/antoine/cpython/newssl/Lib/test/test_ftplib.py", line 229, in run
asyncore.loop(timeout=0.1, count=1)
File "/home/antoine/cpython/newssl/Lib/asyncore.py", line 211, in loop
poll_fun(timeout, map)
File "/home/antoine/cpython/newssl/Lib/asyncore.py", line 154, in poll
write(obj)
File "/home/antoine/cpython/newssl/Lib/asyncore.py", line 88, in write
obj.handle_error()
File "/home/antoine/cpython/newssl/Lib/asyncore.py", line 84, in write
obj.handle_write_event()
File "/home/antoine/cpython/newssl/Lib/test/test_ftplib.py", line 313, in handle_write_event
super(SSLConnection, self).handle_write_event()
File "/home/antoine/cpython/newssl/Lib/asyncore.py", line 440, in handle_write_event
self.handle_write()
File "/home/antoine/cpython/newssl/Lib/asynchat.py", line 174, in handle_write
self.initiate_send()
File "/home/antoine/cpython/newssl/Lib/asynchat.py", line 215, in initiate_send
self.handle_close()
File "/home/antoine/cpython/newssl/Lib/test/test_ftplib.py", line 352, in handle_close
self._do_ssl_shutdown()
File "/home/antoine/cpython/newssl/Lib/test/test_ftplib.py", line 290, in _do_ssl_shutdown
self.socket.unwrap()
File "/home/antoine/cpython/newssl/Lib/ssl.py", line 264, in unwrap
s = self._sslobj.shutdown()
error: [Errno 32] Broken pipe
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8108>
_______________________________________
More information about the Python-bugs-list
mailing list