From 47f5c6c265e39c2539056fc0a4d454da6f30516b Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Mon, 4 Mar 2019 18:15:55 -0800 Subject: [PATCH] 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: Steven Allen --- core/core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.go b/core/core.go index 9c5ee603033..d3be559db81 100644 --- a/core/core.go +++ b/core/core.go @@ -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, }