mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 07:46:41 +00:00
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:
commit
cc02bbf6df
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user