RETRY_CONSTANTS
constRETRY_CONSTANTS:object
Defined in: packages/synapse-core/src/utils/constants.ts:129
Type Declaration
Section titled “Type Declaration”POLL_INTERVAL
Section titled “POLL_INTERVAL”
readonlyPOLL_INTERVAL:4000=4000
The interval in milliseconds between polls. 4 seconds is the default interval between polls.
POLL_LIMIT
Section titled “POLL_LIMIT”
readonlyPOLL_LIMIT:number=Infinity
The limit of polls.
PULL_TIMEOUT
Section titled “PULL_TIMEOUT”
readonlyPULL_TIMEOUT:number
Total timeout in milliseconds for waiting on an SP-to-SP pull to finish. 2 hours matches Curio’s per-attempt pull download timeout; large pieces (up to SIZE_CONSTANTS.MAX_UPLOAD_SIZE) can take well over RETRY_CONSTANTS.TIMEOUT to transfer.
RETRY_DELAY
Section titled “RETRY_DELAY”
readonlyRETRY_DELAY:250=250
The delay in milliseconds between retries. 250ms is the default delay between retries.
TIMEOUT
Section titled “TIMEOUT”
readonlyTIMEOUT:number
The timeout in milliseconds. 5 minutes is the default timeout.