Skip to content

Commit

Permalink
tcp keepalive
Browse files Browse the repository at this point in the history
  • Loading branch information
wcy-fdu committed Apr 2, 2024
1 parent 5644fbf commit 8427eca
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ pub fn new_http_client(config: &ObjectStoreConfig) -> ObjectResult<HttpClient> {
let mut client_builder = reqwest::ClientBuilder::new();

if let Some(keepalive_ms) = config.s3.object_store_keepalive_ms.as_ref() {
client_builder =
client_builder.http2_keep_alive_timeout(Duration::from_millis(*keepalive_ms));
client_builder = client_builder.tcp_keepalive(Duration::from_millis(*keepalive_ms));
}

if let Some(nodelay) = config.s3.object_store_nodelay.as_ref() {
Expand Down

0 comments on commit 8427eca

Please sign in to comment.