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-March/071630.html below:

[Python-Dev] Adding socket timeout to urllib2

[Python-Dev] Adding socket timeout to urllib2 [Python-Dev] Adding socket timeout to urllib2Guido van Rossum guido at python.org
Tue Mar 6 22:47:21 CET 2007
On 3/6/07, Facundo Batista <facundo at taniquetil.com.ar> wrote:
> Guido van Rossum wrote:
>
> >> - I'll modify urlopen for it to accept a socket_timeout parameter,
> >> default to None
> >
> > I'd call it timeout. There can't really be much ambiguity can there?
>
> Yes and no. For example, if I do a
> ``urllib2.urlopen("ftp://ftp.myhome.com.ar/blah.txt", timeout=10)``, the
> timeout is about the socket or about the file transfer?

Think of it this way. "Timeout" doesn't mean the whole thing needs to
be completed in 10 secs. It means that over 10 secs of no activity
causes it to be aborted.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
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