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 pau
Recipients pau
Date 2008-04-08.21:04:50
SpamBayes Score 0.018214637
Marked as misclassified No
Message-id <1207688700.18.0.242817334294.issue2600@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2008-04-08 21:05:00pausetspambayes_score: 0.0182146 -> 0.018214637
recipients: + pau
2008-04-08 21:05:00pausetspambayes_score: 0.0182146 -> 0.0182146
messageid: <1207688700.18.0.242817334294.issue2600@psf.upfronthosting.co.za>
2008-04-08 21:04:58paulinkissue2600 messages
2008-04-08 21:04:54paucreate