From 8427ecaba35ffe31a9f7aa47280cc5a37345d144 Mon Sep 17 00:00:00 2001 From: congyi <15605187270@163.com> Date: Tue, 2 Apr 2024 15:38:31 +0800 Subject: [PATCH] tcp keepalive --- .../src/object/opendal_engine/opendal_object_store.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/object_store/src/object/opendal_engine/opendal_object_store.rs b/src/object_store/src/object/opendal_engine/opendal_object_store.rs index 18fe066031cb1..ff5afa944243b 100644 --- a/src/object_store/src/object/opendal_engine/opendal_object_store.rs +++ b/src/object_store/src/object/opendal_engine/opendal_object_store.rs @@ -66,8 +66,7 @@ pub fn new_http_client(config: &ObjectStoreConfig) -> ObjectResult { 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() {