requests.{get,post} timeout
Jon Ribbens
jon+usenet at unequivocal.eu
Tue Aug 22 14:14:58 EDT 2017
On 2017-08-22, Chris Angelico <rosuav at gmail.com> wrote:
> On Wed, Aug 23, 2017 at 2:58 AM, Jon Ribbens <jon+usenet at unequivocal.eu> wrote:
>> Yes. There is no timeout feature that can be used to limit the total
>> time a 'requests' request takes. Some people might think that this is
>> a serious flaw in the requests library that would need urgent
>> rectification in order to make the library safe and useful to use in
>> almost any situation, but the 'requests' developers are apparently not
>> among those people.
>
> I'm not either. The idea of a timeout is to detect when something's
> completely not working, not to limit the overall time to process.
We appear to have different understandings of the word "timeout".
I think it means a time, which if it runs out, will stop the operation.
I am somewhat surprised that anyone might have a different definition
- not least because, from a human being's point of view, they care
about the overall time something takes to happen and telling them that
nothing's wrong because technically we are still "successfully" receiving
the expected 10 kilobytes of data 3 hours later is unlikely to make
them happy.
More information about the Python-list
mailing list