Merge pull request #1836 from balena-os/59s-timeout

Increase request timeout to 59s to better align with our backends
This commit is contained in:
bulldozer-balena[bot] 2021-11-29 17:26:51 +00:00 committed by GitHub
commit cc02bbf6df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,9 +11,9 @@ import supervisorVersion = require('./supervisor-version');
export { requestLib }; export { requestLib };
// With these settings, the device must be unable to receive a single byte // 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 // (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_INTERVAL = 10000; // ms
const DEFAULT_REQUEST_RETRY_COUNT = 30; const DEFAULT_REQUEST_RETRY_COUNT = 30;