Skip to content

Commit

Permalink
enable http2 keep alives
Browse files Browse the repository at this point in the history
  • Loading branch information
DolceTriade committed Mar 14, 2024
1 parent ab291af commit 299564d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions blade/bep/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,9 @@ pub async fn run_bes_grpc(
handlers: Arc::new(handlers),
};
Server::builder()
.tcp_keepalive(Some((std::time::Duration::from_secs(20))))
.http2_keepalive_interval(Some(std::time::Duration::from_secs(20)))
.http2_keepalive_timeout(Some(std::time::Duration::from_secs(30)))
.add_service(
publish_build_event_server::PublishBuildEventServer::new(server)
.max_decoding_message_size(10 * 1024 * 1024),
Expand Down

0 comments on commit 299564d

Please sign in to comment.