✨ feat(config): option to keep the websurfx
server connection alive for a certain period for subsequent requests (#568)
This commit is contained in:
parent
408858a91e
commit
5d06cce220
4 changed files with 14 additions and 5 deletions
|
@ -81,7 +81,7 @@ pub async fn aggregate(
|
|||
.pool_idle_timeout(Duration::from_secs(
|
||||
config.pool_idle_connection_timeout as u64,
|
||||
))
|
||||
.tcp_keepalive(Duration::from_secs(config.tcp_connection_keepalive as u64))
|
||||
.tcp_keepalive(Duration::from_secs(config.tcp_connection_keep_alive as u64))
|
||||
.connect_timeout(Duration::from_secs(config.request_timeout as u64)) // Add timeout to request to avoid DDOSing the server
|
||||
.https_only(true)
|
||||
.gzip(true)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue