There are no "correct" timeout value, that is why requests does not specify timeout by default. In some cases it could be 1 second, in other cases 30 minutes.
Also there are two timeout options:
connect - time until connection is established, this by default could be set to 5 seconds
read - time until a response is received, this depends on --chunk-size and possibly other parameters, by default it could be set to 5 minutes, with possibility to specify different value via command line --read-timeout parameter.
In case of read timeout error, it should be suggested, that a smaller --chunk-size could be used, to avoid timeouts.
Currently,
spinta push
usesrequests
to access remote Spinta server, but does not specify any timeouts.requests
documentation says:There are no "correct" timeout value, that is why
requests
does not specify timeout by default. In some cases it could be 1 second, in other cases 30 minutes.Also there are two timeout options:
--chunk-size
and possibly other parameters, by default it could be set to 5 minutes, with possibility to specify different value via command line--read-timeout
parameter.In case of read timeout error, it should be suggested, that a smaller
--chunk-size
could be used, to avoid timeouts.