Skip to main content

IROH_REQUEST_TIMEOUT_LONG_POLL

Constant IROH_REQUEST_TIMEOUT_LONG_POLL 

Source
const IROH_REQUEST_TIMEOUT_LONG_POLL: Duration;
Expand description

Wall-clock budget for an iroh API request to a server-side long-poll endpoint (await_* / wait_*). These wait on the server until an event fires (block height reached, contract cancelled, etc.) before responding, so they need a generous bound. Set well above realistic mainnet block intervals; if a long-poll legitimately needs longer than this the upstream request_current_consensus_retry loop will reconnect and retry.