spider_util/constants/downloader.rs
1//! Default values used by downloader and client setup code.
2
3/// Default request timeout in seconds.
4pub const DEFAULT_REQUEST_TIMEOUT_SECS: u64 = 30;
5
6/// Connection pool idle timeout in seconds.
7pub const CONNECTION_POOL_IDLE_TIMEOUT_SECS: u64 = 120;
8
9/// TCP keepalive in seconds.
10pub const TCP_KEEPALIVE_SECS: u64 = 60;
11
12/// Connect timeout in seconds.
13pub const CONNECT_TIMEOUT_SECS: u64 = 10;
14
15/// Maximum idle connections per host for default client.
16pub const DEFAULT_POOL_MAX_IDLE_PER_HOST: usize = 200;
17
18/// Maximum idle connections per host for host-specific clients.
19pub const HOST_SPECIFIC_POOL_MAX_IDLE_PER_HOST: usize = 50;