You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to use urllib2 with something as usual as binding to a given
network interface and it was incredibly complex. I also did not like the
usual propodes solution to timeout the connections: set the global
socket timeour. I needed a different timeout for each connection.
So I took my time, I learnt about httplib and urllib2 and made a patch
to enhance both libraries.
BindingHTTPConnectionWithTimeout extends HTTPConection with supports
timeouts and a binding address.
BindingHTTPHandlerWithTimeout extends HTTPHandler and basically uses the
new http class provided.
The patch is really simple and would make a great addition to the
standard library. I've tried to follow the style amd copied similar
methods, giving the due credits.
I hope you find it useful and consider it for inclusion.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: