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

Charles-François Natali report at bugs.python.org
Fri Sep 20 19:39:56 CEST 2013


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? Completely retrying the open?

Do you mean you're able to pass a timeout greater than 20 seconds to
the Windows command line FTP client?

In any case, there's nothing much we can do: if the TCP stack returns
the connection broken (timed out), we can't do much.
On Linux, you can increase the sysctls I mentioned in my previous
message, but that's it.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18907>
_______________________________________


More information about the Python-bugs-list mailing list