[issue8108] test_ftplib fails with OpenSSL 0.9.8m

STINNER Victor report at bugs.python.org
Fri Mar 12 00:06:27 CET 2010

STINNER Victor <victor.stinner at haypocalc.com> added the comment:

More informations:

Extract of the manual page:

 If the underlying BIO is non-blocking, SSL_shutdown() will also return when the underlying BIO could not satisfy the needs of SSL_shutdown() to continue the handshake. In this case a call to SSL_get_error() with the return value of SSL_shutdown() will yield SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE. ***The calling process then must repeat the call after taking appropriate action to satisfy the needs of SSL_shutdown().*** The action depends on the underlying BIO. When using a non-blocking socket, nothing is to be done, but select() can be used to check for the required condition. When using a buffering BIO, like a BIO pair, data must be written into or retrieved out of the BIO before being able to continue.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list