feat: enhance reqwest client configuration with pool idle timeout and TCP keepalive

This commit is contained in:
phattaranun.a committed 2026-05-25 01:12:49 +07:00
1 parent 186e56e125
commit ae4c665b28
1 file changed
+2
+2
View File
@@ -33,6 +33,8 @@ impl SeaweedClient {
filer_url: filer_url.into(),
http: Client::builder()
.timeout(std::time::Duration::from_secs(60))
.pool_idle_timeout(std::time::Duration::from_secs(10))
.tcp_keepalive(std::time::Duration::from_secs(5))
.build()
.expect("reqwest client"),
}