-
Type: Improvement
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.2.1
-
Fix Version/s: 2.2.2
-
Component/s: None
-
Epic Link:
-
Tags:
-
Sprint:nxDrive 11.1.13
-
Story Points:1
The client should be more robust against connection errors like:
ConnectionError('Connection aborted') RemoteDisconnected('Remote end closed connection without response')
From the author of requests:
If Python sends a request at roughly the same time as the server closes the
session, then the server will send a RST (as the session is closed). Python
receives this RST on what it thought was a valid session and throws an
error.
This can be handled by setting max_retries in a requests.adapters.HTTPAdapter class (the requests default is 0) which will retry on a ConnectionError.
—
Note that we are manually retrying uploads only (3 times). Using the general retry would be helpful for all calls.
- is related to
-
NXDRIVE-1743 Fail to upload large files through Drive
- Resolved