Skip to content

Commit

Permalink
lower max concurrent streams a ton
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn committed Aug 24, 2023
1 parent 9e443a8 commit 87cab41
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/corro-agent/src/api/peer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ fn build_quinn_transport_config(config: &GossipConfig) -> quinn::TransportConfig
.unwrap(),
));

// max 1024 concurrent bidirectional streams
transport_config.max_concurrent_bidi_streams(1024u32.into());
// max concurrent bidirectional streams
transport_config.max_concurrent_bidi_streams(32u32.into());

// max 10240 concurrent unidirectional streams
transport_config.max_concurrent_uni_streams(10240u32.into());
// max concurrent unidirectional streams
transport_config.max_concurrent_uni_streams(512u32.into());

if let Some(max_mtu) = config.max_mtu {
info!("Setting maximum MTU for QUIC at {max_mtu}");
Expand Down

0 comments on commit 87cab41

Please sign in to comment.