[issue18907] urllib2.open FTP open times out at 20 secs despite timeout parameter

2013-11-09 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> wont fix stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue18907] urllib2.open FTP open times out at 20 secs despite timeout parameter

2013-09-20 Thread Charles-François Natali
Charles-François Natali added the comment: > So this may have been a DNS related issue, perhaps a load balancer referring > the connection to a dead machine. Yet, for some reason, the Windows command > line FTP client can recover from this problem after 20 seconds? What are they > doing right

[issue18907] urllib2.open FTP open times out at 20 secs despite timeout parameter

2013-09-14 Thread John Nagle
John Nagle added the comment: The server operator at the US Securities and Exchange Commission writes to me: "There was a DNS issue that affected the availability of FTP at night. We believe it is resolved. Please let us know if you encounter any further problems. Thanks, SEC Webmaster". So

[issue18907] urllib2.open FTP open times out at 20 secs despite timeout parameter

2013-09-14 Thread Charles-François Natali
Changes by Charles-François Natali : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18907] urllib2.open FTP open times out at 20 secs despite timeout parameter

2013-09-02 Thread Charles-François Natali
Charles-François Natali added the comment: Actually, I think urllib (actually ftplib) handles the timeout correctly. Here's the result on my Linux box (replacing the server with localhost, with a firewall rule to drop packets to ftp port): $ ./python ~/edgartimeouttest3.py Open of ftp://local

[issue18907] urllib2.open FTP open times out at 20 secs despite timeout parameter

2013-09-02 Thread John Nagle
John Nagle added the comment: Reproduced problem in Python 3.3 (Win32). Error message there is: Open of ftp://ftp.sec.gov/edgar/daily-index failed after 21.08 seconds: So this is broken in both Python 2.7 and Python 3.3. -- versions: +Python 3.3 Added file: http://bugs.python.org/fil

[issue18907] urllib2.open FTP open times out at 20 secs despite timeout parameter

2013-09-02 Thread John Nagle
New submission from John Nagle: urllib2.open for an FTP url does not obey the timeout parameter. Attached test program times out on FTP open after 21 seconds, even though the specified timeout is 60 seconds. Timing is consistent; times have ranged from 21.03 to 21.05 seconds. Python documenta