Skip to content

Commit

Permalink
firehose: Set tcp keepalive (#3822)
Browse files Browse the repository at this point in the history
  • Loading branch information
leoyvens authored Aug 8, 2022
1 parent c75e0d7 commit 4f811c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion graph/src/firehose/endpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ impl FirehoseEndpoint {
// send pings.
let endpoint = endpoint_builder
.initial_connection_window_size(Some((1 << 31) - 1))
.connect_timeout(Duration::from_secs(10));
.connect_timeout(Duration::from_secs(10))
.tcp_keepalive(Some(Duration::from_secs(15)));

let uri = endpoint.uri().to_string();
//connect_lazy() used to return Result, but not anymore, that makes sence since Channel is not used immediatelly
Expand Down

0 comments on commit 4f811c3

Please sign in to comment.