feat: enhance reqwest client configuration with pool idle timeout and TCP keepalive
This commit is contained in:
1 parent
186e56e125
commit
ae4c665b28
1 file changed
+2
@@ -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"),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user