Affects Version/s: 2.2.1
Fix Version/s: 2.2.2
We should set defaults timeouts for "connect" and "read" requests.
This can be done via the timeout keyword argument passed to requests:
timeout: How long to wait for the server to send
data before giving up, as a float, or a (connect timeout,
read timeout) tuple.
Here, the "connect" timeout is 5 seconds and "read" timeout is 14 seconds. This will allow the request to fail much more quicklly if it can't connect to the resource, and if it does connect then it will give it more time to download the data.
Let's pick 5 for the "connect" timeout (stored as TIMEOUT_CONNECT) and 30 for the "read" (stored as TIMEOUT_READ).
- is related to
NXDRIVE-1743 Fail to upload large files through Drive