Increase request timeout to 59s to better align with our backends

Change-type: patch
This commit is contained in:
Pagan Gazzard 2021-11-29 17:14:51 +00:00
parent f81ab2fc06
commit 2eb00fa0da

View File

@ -11,9 +11,9 @@ import supervisorVersion = require('./supervisor-version');
export { requestLib };
// With these settings, the device must be unable to receive a single byte
// from the network for a continuous period of 20 minutes before we give up.
// from the network for a continuous period of 34.5 minutes before we give up.
// (reqTimeout + retryInterval) * retryCount / 1000ms / 60sec ~> minutes
const DEFAULT_REQUEST_TIMEOUT = 30000; // ms
const DEFAULT_REQUEST_TIMEOUT = 59000; // ms
const DEFAULT_REQUEST_RETRY_INTERVAL = 10000; // ms
const DEFAULT_REQUEST_RETRY_COUNT = 30;