This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author asandvig
Recipients asandvig
Date 2010-08-19.13:52:23
SpamBayes Score 1.7781864e-05
Marked as misclassified No
Message-id <1282225946.17.0.612948845657.issue9641@psf.upfronthosting.co.za>
In-reply-to
Content
socket.create_connection() does in fact set the timeout of the resulting socket object, so the issue is not an issue after all.

The problems I experienced was a result of sending the timeout as the third parameter to the HTTPConnection() constructor instead of a named parameter, i.e.:

  con = httplib.HTTPConnection(hostname, port, timeout)

should have been:

  con = httplib.HTTPConnection(hostname, port, timeout=timeout)
History
Date User Action Args
2010-08-19 13:52:26asandvigsetrecipients: + asandvig
2010-08-19 13:52:26asandvigsetmessageid: <1282225946.17.0.612948845657.issue9641@psf.upfronthosting.co.za>
2010-08-19 13:52:24asandviglinkissue9641 messages
2010-08-19 13:52:23asandvigcreate