Skip to content

Commit

Permalink
bump back some of the other timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Oct 10, 2023
1 parent 3ee62c1 commit 28fafa7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions xmtp_networking/src/grpc_api_helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ fn get_tls_connector() -> HttpsConnector<tower::timeout::Timeout<HttpConnector>>
.enable_http2()
.wrap_connector(s)
})
.timeout(Duration::from_secs(2))
.timeout(Duration::from_secs(5))
.service(http)
}

Expand Down Expand Up @@ -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 =
Expand All @@ -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))?;
Expand Down

0 comments on commit 28fafa7

Please sign in to comment.