Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Protocol/Connection based timeout facility for urllib2

Project Description

Protocol based timeout facility for urllib2.

Currently only support HTTP and HTTPS.

Achived by inheriting httplib.HTTPConnection and httplib.HTTPSConnection classes and provide a timeout version for both. Timeout has been carefully implemented per connection base. A HTTPConnectionTimeoutError or HTTPSConnectionTimeoutError would be raised instead of the general socket.error so that urlib2 wouldn’t throw out URLError exception when timeout is hit.

Release History

This version
History Node


Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Kabu Creative Kabu Creative UX & Design Google Google Cloud Servers Fastly Fastly CDN StatusPage StatusPage Statuspage DigiCert DigiCert EV Certificate