Re: More urllib timeout issues.

2007-05-02 Thread John Nagle
Facundo Batista wrote: > Steve Holden wrote: > > >>1) There is work afoot to build timeout arguments into network libraries >>for 2.6, and I know Facundo Batista has been involved, you might want to >>Google or email Facundo about that. > > > Right now (in svn trunk) httplib, ftplib, telnetli

Re: More urllib timeout issues.

2007-05-02 Thread Facundo Batista
Steve Holden wrote: > 1) There is work afoot to build timeout arguments into network libraries > for 2.6, and I know Facundo Batista has been involved, you might want to > Google or email Facundo about that. Right now (in svn trunk) httplib, ftplib, telnetlib, etc, has a timeout argument. If y

Re: More urllib timeout issues.

2007-05-02 Thread Facundo Batista
John Nagle wrote: > I took a look at Facundo Batista's work in the tracker, and he > currently seems to be trying to work out a good way to test the > existing SSL module. It has to connect to something to be tested, Right now, test_socket_ssl.py has, besides the previous tests, the capabil

Re: More urllib timeout issues.

2007-04-28 Thread John Nagle
Steve Holden wrote: > John Nagle wrote: >> Then we'd have a reasonable network timeout system. >> We have about half of the above now, but it's not consistent. >> >> Comments? >> > The only comments I'll make for now are > > 1) There is work afoot to build timeout arguments into network libraries

Re: More urllib timeout issues.

2007-04-28 Thread Steve Holden
John Nagle wrote: >I thought I had all the timeout problems with urllib worked around, > but no. > >socket.setdefaulttimeout is useful, but not always effective. > I'm setting that to 15 seconds. > If the host end won't open the connection within 15 seconds, > urllib times out. But if the

More urllib timeout issues.

2007-04-27 Thread John Nagle
I thought I had all the timeout problems with urllib worked around, but no. socket.setdefaulttimeout is useful, but not always effective. I'm setting that to 15 seconds. If the host end won't open the connection within 15 seconds, urllib times out. But if the host end opens the connection,

Re: urllib timeout issues

2007-03-29 Thread supercooper
On Mar 27, 4:50 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 27 Mar 2007 17:41:44 -0300, supercooper <[EMAIL PROTECTED]> > escribió: > > > > > On Mar 27, 3:13 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > > wrote: > >> En Tue, 27 Mar 2007 16:21:55 -0300, supercooper <[EMAIL PROTECTE

Re: urllib timeout issues

2007-03-27 Thread Nick Vatamaniuc
On Mar 27, 4:41 pm, "supercooper" <[EMAIL PROTECTED]> wrote: > On Mar 27, 3:13 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: > > > > > En Tue, 27 Mar 2007 16:21:55 -0300, supercooper <[EMAIL PROTECTED]> > > escribió: > > > > I am downloading images using the script below. Sometimes it will g

Re: urllib timeout issues

2007-03-27 Thread Gabriel Genellina
En Tue, 27 Mar 2007 17:41:44 -0300, supercooper <[EMAIL PROTECTED]> escribió: > On Mar 27, 3:13 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: >> En Tue, 27 Mar 2007 16:21:55 -0300, supercooper <[EMAIL PROTECTED]> >> escribió: >> >> > I am downloading images using the script below. Sometim

Re: urllib timeout issues

2007-03-27 Thread supercooper
On Mar 27, 3:13 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 27 Mar 2007 16:21:55 -0300, supercooper <[EMAIL PROTECTED]> > escribió: > > > I am downloading images using the script below. Sometimes it will go > > for 10 mins, sometimes 2 hours before timing out with the following > >

Re: urllib timeout issues

2007-03-27 Thread Gabriel Genellina
En Tue, 27 Mar 2007 16:21:55 -0300, supercooper <[EMAIL PROTECTED]> escribió: > I am downloading images using the script below. Sometimes it will go > for 10 mins, sometimes 2 hours before timing out with the following > error: > > urllib.urlretrieve(fullurl, localfile) > IOError: [Errno soc

urllib timeout issues

2007-03-27 Thread supercooper
I am downloading images using the script below. Sometimes it will go for 10 mins, sometimes 2 hours before timing out with the following error: Traceback (most recent call last): File "ftp_20070326_Downloads_cooperc_FetchLibreMapProjectDRGs.py", line 108, i n ? urllib.urlretrieve(fullurl, lo