bump the stream window size to 1MiB
work towards
@@ -50,7 +50,12 @@ var DefaultTransport = (*Transport)(&yamux.Config{
EnableKeepAlive: true, // from yamux.DefaultConfig
KeepAliveInterval: 30 * time.Second, // from yamux.DefaultConfig
ConnectionWriteTimeout: 10 * time.Second, // from yamux.DefaultConfig
- MaxStreamWindowSize: uint32(256 * 1024), // from yamux.DefaultConfig
+ // We've bumped this to 1MiB as this critically limits throughput.
+ //
+ // 1MiB means a best case of 10MiB/s (83.89Mbps) on a connection with
+ // 100ms latency. The default gave us 2.4MiB *best case* which was
+ // totally unacceptable.
+ MaxStreamWindowSize: uint32(1024 * 1024),
LogOutput: ioutil.Discard,
})
