提交 47f5c6c2 作者: Steven Allen

yamux: increase yamux window size to 8MiB.

This _should_ be variable. But, until we can get around to fixing that, 8MiB
means a max speed of 40MiB given a 200ms RTT. The current limit gives us a
2.5MiB max rate which _really_ hurts.

License: MIT
Signed-off-by: 's avatarSteven Allen <steven@stebalien.com>
上级 a301a711
......@@ -418,7 +418,7 @@ func makeSmuxTransportOption(mplexExp bool) libp2p.Option {
ConnectionWriteTimeout: time.Second * 10,
KeepAliveInterval: time.Second * 30,
EnableKeepAlive: true,
MaxStreamWindowSize: uint32(1024 * 512),
MaxStreamWindowSize: uint32(16 * 1024 * 1024), // 16MiB
LogOutput: ioutil.Discard,
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论