Make a clear distinction between the transport timeout and the total method time timeout #423
Labels
type: feature request
‘Nice-to-have’ improvement, new feature or different behavior or design.
It turned out that the concern from #406 was valid, unfortunately:
The changed semantics of
timeout
caused an issue in thestorage
library. A user reported that if a large file upload takes, say, minutes and succeeds, aTimeout
error is still raised, because the total execution time takes more than ~60 seconds, which the default transport timeout configured here in this library here.Proposed solution
Leave the
timeout
parameter as is and still pass it to the transport, but introduce and expose a new optional parametermax_allowed_time
that can be used instead to configure the "total timeout".Alternatives
Modifying the library code so that it supports "absolute total timeouts", but that would require interrupting requests in-flight, which does not seem to be a straightforward task -https://stackoverflow.com/q/21965484/5040035
The text was updated successfully, but these errors were encountered: