Skip to content

Commit

Permalink
Remove quic window bumps
Browse files Browse the repository at this point in the history
  • Loading branch information
mxinden committed Oct 19, 2023
1 parent 1ac5543 commit ce4384d
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions protocols/perf/src/bin/perf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,20 +214,7 @@ async fn swarm<B: NetworkBehaviour + Default>() -> Result<Swarm<B>> {
.upgrade(upgrade::Version::V1Lazy)
.authenticate(libp2p_tls::Config::new(&local_key)?)
.multiplex(libp2p_yamux::Config::default());

let quic = {
let mut config = libp2p_quic::Config::new(&local_key);
config.support_draft_29 = true;

// TODO: Revert. But could potentially inform a better default.
//
// see test-plans user-data.sh for rational
config.max_connection_data = 200000000;
config.max_stream_data = 200000000;

libp2p_quic::tokio::Transport::new(config)
};

let quic = libp2p_quic::tokio::Transport::new(libp2p_quic::Config::new(&local_key));
let dns = libp2p_dns::tokio::Transport::system(OrTransport::new(quic, tcp))?;

dns.map(|either_output, _| match either_output {
Expand Down

0 comments on commit ce4384d

Please sign in to comment.