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/2002-June/025128.html below:

[Python-Dev] Socket timeout patch

[Python-Dev] Socket timeout patch [Python-Dev] Socket timeout patchGreg Ewing greg@cosc.canterbury.ac.nz
Fri, 07 Jun 2002 16:19:57 +1200 (NZST)
Guido:

> - Should sock.settimeout(0.0) mean the same as sock.setblocking(0)?
>   Currently it sets a timeout of zero seconds, and that behaves pretty
>   much the same as setting the socket in nonblocking mode -- but not
>   exactly.  Maybe these should be made the same?

I'd say no. Someone might want the current behaviour,
whatever it is -- and if they don't, they can always
make it properly non-blocking. Don't make a special
case unless it's absolutely necessary.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+




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