foundry_common::constants

Constant REQUEST_TIMEOUT

Source
pub const REQUEST_TIMEOUT: Duration;
Expand description

Default request timeout for http requests

Note: this is only used so that connections, that are discarded on the server side won’t stay open forever. We assume some nodes may have some backoff baked into them and will delay some responses. This timeout should be a reasonable amount of time to wait for a request.