From 2e7a709727de6de1b53bcafbbc089864556953fe Mon Sep 17 00:00:00 2001 From: xtaci Date: Thu, 2 Jun 2016 21:58:49 +0800 Subject: [PATCH] update upper limit of yamux window for 4k video --- client/main.go | 2 +- server/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/main.go b/client/main.go index 683e1eb..3ccad64 100644 --- a/client/main.go +++ b/client/main.go @@ -153,7 +153,7 @@ func main() { EnableKeepAlive: true, KeepAliveInterval: 30 * time.Second, ConnectionWriteTimeout: 30 * time.Second, - MaxStreamWindowSize: 1048576, + MaxStreamWindowSize: 16777216, LogOutput: os.Stderr, } session, err := yamux.Client(kcpconn, config) diff --git a/server/main.go b/server/main.go index 73cf84b..4579acf 100644 --- a/server/main.go +++ b/server/main.go @@ -24,7 +24,7 @@ func handleMux(conn *kcp.UDPSession, target string) { EnableKeepAlive: true, KeepAliveInterval: 30 * time.Second, ConnectionWriteTimeout: 30 * time.Second, - MaxStreamWindowSize: 1048576, + MaxStreamWindowSize: 16777216, LogOutput: os.Stderr, } m, err := yamux.Server(conn, config)