[issue1251] ssl module doesn't support non-blocking handshakes
Bill Janssen
report at bugs.python.org
Mon Oct 15 19:53:09 CEST 2007
Bill Janssen added the comment:
Perhaps we shouldn't expose this at the application level. We could
check, in the C module's sslwrap, whether the socket is blocking or not,
and do the right thing there, so that sslwrap would always succeed in
one call. Since we are releasing the GIL whenever we do SSL_accept() or
SSL_connect(), other threads get a chance to run, so doing it
transparently shouldn't affect the Python program's liveness. And it
would reduce the chances for application error.
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1251>
__________________________________
More information about the Python-bugs-list
mailing list