Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

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.

Project details


Release history Release notifications

This version
History Node

0.1

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page