Antoine Pitrou <[email protected]> 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 <[email protected]>
<http://bugs.python.org/issue8108>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com