Closed nicornk closed 1 year ago
Please have a look @koenvo
Thanks for this PR!
Maybe it would be good to set the timeout to the sum of both connect
and read
timeouts
This was more of a quick fix. Your suggestion works for me. Should I adopt it? Ideally, we could set the read and connect timeout on the underlying XMLHttpRequest but I don't think thats possible.
I'm afraid there is just a single value that can be passed to a XMLHttpRequest
, see also https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/timeout
If you can adopt, please do.
Done.
@koenvo ready for review
@koenvo Can you please merge this PR? Just ran into the issue again :(
@koenvo sorry for bugging...
Sorry for the delay. Thanks for your contribution!
Extract Connect timeout as first argument of tuple
https://requests.readthedocs.io/en/latest/user/advanced/#timeouts
Fixes: