[issue8108] test_ftplib fails with OpenSSL 0.9.8m
Giampaolo Rodola'
report at bugs.python.org
Mon Mar 22 22:14:35 CET 2010
Giampaolo Rodola' <billiejoex at users.sourceforge.net> added the comment:
> The patch isn't exactly correct: it should ideally retry the unwrap()
> call later, rather than simply ignore the error. But since it's just
> used for testing, it looks sufficient.
Actually unwrap() should already be called.
What the patch does is returning in case of ERROR_WANT_READ/WRITE, and *explicitly avoids to close() the connection when such an event occurs*.
This should grant that another asyncore poll() loop is executed, handle_close() automatically be called again and so unwrap().
As I said in comment #100977 I'm not 100% sure of this since I've not been able to reproduce the issue. I'm just presuming this as I know that asyncore works like this with plain-text sockets.
I'd like to make sure this works as expected even if it's just a test.
If some of the folks able to reproduce this issue could confirm that unwrap() gets called again it would be great.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8108>
_______________________________________
More information about the Python-bugs-list
mailing list