pwsm / httplib2

Automatically exported from code.google.com/p/httplib2
0 stars 0 forks source link

Read - Connect - Response Timeout #167

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This isn't an issue, an enhancement but I couldn't find out how to post one.

It would be very nice if we had some sort of timeout settings on read and 
response dialogs with servers, right now httplib2 is depending on httplib and 
it depends on socket module, which only lets setting connection timeout. After 
a connection is established this timeout setting has no use.

The idea hit me, when I'm trying to download a list of URLs to check if the 
page has a link to my query, and the list included a URL with a 1.7 Gigabyte 
file. This definitely isn't a web page in a simple manner, but my script hangs 
when it comes to that URL. So I have to have some sort of control over the time 
my worker threads consume.

Original issue reported on code.google.com by ke...@ulutas.gen.tr on 22 Aug 2011 at 6:22