A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-December/075529.html below:

[Python-Dev] blocking a non-blocking socket

[Python-Dev] blocking a non-blocking socket [Python-Dev] blocking a non-blocking socketBill 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4