@cryptotaxi247 / kubo / commits / 47f5c6c26

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 <steven@stebalien.com>

Steven Allen committed Mar 4, 2019 at 18:15 UTC 47f5c6c265e39c2539056fc0a4d454da6f30516b
1 file changed +1 -1
core/core.go
+1 -1
@@ -418,7 +418,7 @@ func makeSmuxTransportOption(mplexExp bool) libp2p.Option {
418 ConnectionWriteTimeout: time.Second * 10,
419 KeepAliveInterval: time.Second * 30,
420 EnableKeepAlive: true,
421 - MaxStreamWindowSize: uint32(1024 * 512),
421 + MaxStreamWindowSize: uint32(16 * 1024 * 1024), // 16MiB
422 LogOutput: ioutil.Discard,
423 }
424