From 28fafa7736c4e48f784f8d79ed1d31178ef48506 Mon Sep 17 00:00:00 2001 From: Naomi Plasterer Date: Tue, 10 Oct 2023 12:06:08 -0700 Subject: [PATCH] bump back some of the other timeouts --- xmtp_networking/src/grpc_api_helper.rs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/xmtp_networking/src/grpc_api_helper.rs b/xmtp_networking/src/grpc_api_helper.rs index 0a988425f..af63bc413 100644 --- a/xmtp_networking/src/grpc_api_helper.rs +++ b/xmtp_networking/src/grpc_api_helper.rs @@ -46,7 +46,7 @@ fn get_tls_connector() -> HttpsConnector> .enable_http2() .wrap_connector(s) }) - .timeout(Duration::from_secs(2)) + .timeout(Duration::from_secs(5)) .service(http) } @@ -76,7 +76,7 @@ impl Client { let tls_conn = hyper::Client::builder() .pool_idle_timeout(Duration::from_secs(5)) .http2_keep_alive_interval(Duration::from_secs(3)) - .http2_keep_alive_timeout(Duration::from_secs(2)) + .http2_keep_alive_timeout(Duration::from_secs(5)) .build(connector); let uri = @@ -91,11 +91,11 @@ impl Client { } else { let channel = Channel::from_shared(host) .map_err(|e| Error::new(ErrorKind::SetupError).with(e))? - .timeout(Duration::from_secs(2)) - .connect_timeout(Duration::from_secs(2)) - .tcp_keepalive(Some(Duration::from_secs(5))) - .http2_keep_alive_interval(Duration::from_secs(5)) - .keep_alive_timeout(Duration::from_secs(2)) + .timeout(Duration::from_secs(5)) + .connect_timeout(Duration::from_secs(5)) + .tcp_keepalive(Some(Duration::from_secs(3))) + .http2_keep_alive_interval(Duration::from_secs(3)) + .keep_alive_timeout(Duration::from_secs(5)) .connect() .await .map_err(|e| Error::new(ErrorKind::SetupError).with(e))?;