|
@@ -44,6 +44,8 @@ pub struct Config {
|
|
|
pub safe_search: u8,
|
|
|
/// It stores the TCP connection keepalive duration in seconds.
|
|
|
pub tcp_connection_keepalive: u8,
|
|
|
+ /// It stores the pool idle connection timeout in seconds.
|
|
|
+ pub pool_idle_connection_timeout: u8,
|
|
|
}
|
|
|
|
|
|
impl Config {
|
|
@@ -134,6 +136,7 @@ impl Config {
|
|
|
.get::<_, HashMap<String, bool>>("upstream_search_engines")?,
|
|
|
request_timeout: globals.get::<_, u8>("request_timeout")?,
|
|
|
tcp_connection_keepalive: globals.get::<_, u8>("tcp_connection_keepalive")?,
|
|
|
+ pool_idle_connection_timeout: globals.get::<_, u8>("pool_idle_connection_timeout")?,
|
|
|
threads,
|
|
|
rate_limiter: RateLimiter {
|
|
|
number_of_requests: rate_limiter["number_of_requests"],
|