We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a492fe6 commit e672212Copy full SHA for e672212
beacon_node/eth2_libp2p/src/service.rs
@@ -375,13 +375,17 @@ fn build_transport(
375
mplex_config.set_max_buffer_size(256);
376
mplex_config.set_max_buffer_behaviour(libp2p::mplex::MaxBufferBehaviour::Block);
377
378
+ // yamux config
379
+ let mut yamux_config = libp2p::yamux::YamuxConfig::default();
380
+ yamux_config.set_window_update_mode(libp2p::yamux::WindowUpdateMode::on_read());
381
+
382
// Authentication
383
Ok((
384
transport
385
.upgrade(core::upgrade::Version::V1)
386
.authenticate(generate_noise_config(&local_private_key))
387
.multiplex(core::upgrade::SelectUpgrade::new(
- libp2p::yamux::YamuxConfig::default(),
388
+ yamux_config,
389
mplex_config,
390
))
391
.timeout(Duration::from_secs(10))
0 commit comments