[Python-Dev] Regarding socket timeouts in httplib

Simon Cross hodgestar+pythondev at gmail.com
Thu Jul 1 10:51:48 CEST 2010


On Thu, Jul 1, 2010 at 10:33 AM, Anders Sandvig
<anders.sandvig at gmail.com> wrote:
> 2) Modify HTTPConnection.connect() to set the timeout on the socket
> object after it has been  created (using the same timeout as given on
> the HTTPConnection constructor).

It looks like urllib2 in trunk and urllib.request in py3k are also
affected by this oddity. My vote is for option 2 -- i.e. consider it a
bug that the timeout wasn't consistently applied.

Schiavo
Simon


More information about the Python-Dev mailing list