[Python-Dev] blocking a non-blocking socket
Bill Janssen
janssen at parc.com
Mon Dec 3 18:40:45 CET 2007
Thanks, Audun. If you look at the code, you'll see that both a
connect method and a do_handshake method already exist, and work
pretty much as you describe. The issue is what to do when the user
doesn't use them -- specifies do_handshake_on_connect=True.
> Another way of doing it could be to expose a connect() method on the ssl
> objects. It changes the socket.ssl api, but I'd say it is in the same
> spirit as the do_handshake_on_connect parameter since no existing code
> will break. The caller then calls connect() until it does not return
Bill
More information about the Python-Dev
mailing list