[issue8108] test_ftplib fails with OpenSSL 0.9.8m

Florent Xicluna report at bugs.python.org
Thu Mar 25 01:28:46 CET 2010


Florent Xicluna <florent.xicluna at gmail.com> added the comment:

This patch solves the problem with 0.9.8m on my Debian workstation.

Actually there's 4 kind of errors on shutdown():
 - SSL_ERROR_WANT_READ
 - SSL_ERROR_WANT_WRITE
 - socket.error: errno.PIPE (32)
 - socket.error: 0

Since the command is "shutdown()", the patch silence all the socket errors, because they are probably due to the remote side closing the connection abruptly.
See the details on the Darryl's analysis:
http://bugs.python.org/issue8108#msg100980

This patch is very closed to Darryl's proposal.

----------
stage: needs patch -> patch review
Added file: http://bugs.python.org/file16637/issue8108_openssl_098m.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8108>
_______________________________________


More information about the Python-bugs-list mailing list