Skip to content

RETRY_CONSTANTS

const RETRY_CONSTANTS: object

Defined in: packages/synapse-core/src/utils/constants.ts:129

readonly POLL_INTERVAL: 4000 = 4000

The interval in milliseconds between polls. 4 seconds is the default interval between polls.

readonly POLL_LIMIT: number = Infinity

The limit of polls.

readonly PULL_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.

readonly RETRY_DELAY: 250 = 250

The delay in milliseconds between retries. 250ms is the default delay between retries.

readonly TIMEOUT: number

The timeout in milliseconds. 5 minutes is the default timeout.