[issue18417] urlopen() has a hidden default for its timeout argument

2020-08-30 Thread Facundo Batista
Change by Facundo Batista : -- nosy: -facundobatista ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue18417] urlopen() has a hidden default for its timeout argument

2013-07-10 Thread R. David Murray
Changes by R. David Murray : -- nosy: +facundobatista ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue18417] urlopen() has a hidden default for its timeout argument

2013-07-10 Thread R. David Murray
R. David Murray added the comment: OK, I reviewed the issue enough to remember: If socket.setdefaulttimeout is never called, then the default timeout is None (no timeout). Since socket.setdefaulttimeout is deprecated, the global default should always be None. Therefore, if you want to use t

[issue18417] urlopen() has a hidden default for its timeout argument

2013-07-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jul 10, 2013, at 05:53 AM, R. David Murray wrote: >Please see issue 14425 and then let us know if this is still valid. It's >been a while since I looked at the code and I no longer remember the details, >but I seemed confident in my conclusion at the time..

[issue18417] urlopen() has a hidden default for its timeout argument

2013-07-10 Thread R. David Murray
R. David Murray added the comment: See also issue 4079, if you are concerned about timeouts in urllib. -- ___ Python tracker ___ ___ P

[issue18417] urlopen() has a hidden default for its timeout argument

2013-07-09 Thread R. David Murray
R. David Murray added the comment: Please see issue 14425 and then let us know if this is still valid. It's been a while since I looked at the code and I no longer remember the details, but I seemed confident in my conclusion at the time... :) -- nosy: +r.david.murray ___

[issue18417] urlopen() has a hidden default for its timeout argument

2013-07-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Targeting only 3.4 because, while this should no break any (reasonable ) backward compatibility, it is technically an API change and thus should not get backported. -- ___ Python tracker

[issue18417] urlopen() has a hidden default for its timeout argument

2013-07-09 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: urllib.request.urlopen() takes a `timeout` argument with a default value, but the default value is "hidden" and undocumented. As implemented, the value is socket._GLOBAL_DEFAULT_TIMEOUT, but even this isn't really correct or useful. The problem comes if yo