Skip to content

Commit 30774b9

Browse files
committed
tweak(yamux): Set max window size to 256kb
1 parent 872e1e3 commit 30774b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/src/network/yamux/p2p_network_yamux_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use super::super::*;
77

88
pub const INITIAL_RECV_BUFFER_CAPACITY: usize = 0x40000; // 256kb
99
pub const INITIAL_WINDOW_SIZE: u32 = INITIAL_RECV_BUFFER_CAPACITY as u32;
10-
pub const MAX_WINDOW_SIZE: u32 = 16 * 1024 * 1024; // 16mb
10+
pub const MAX_WINDOW_SIZE: u32 = INITIAL_RECV_BUFFER_CAPACITY as u32;
1111

1212
#[derive(Serialize, Deserialize, Debug, Clone, Default)]
1313
pub struct P2pNetworkYamuxState {

0 commit comments

Comments
 (0)