From 23098c532214861bc26e33fa760ef75b37c51f11 Mon Sep 17 00:00:00 2001 From: xtaci Date: Mon, 1 Oct 2018 10:54:41 +0800 Subject: [PATCH] upd framesize to 32768 to fix crash to the overflow of uint16 --- mux.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mux.go b/mux.go index afb2f1c..3cc8f11 100644 --- a/mux.go +++ b/mux.go @@ -31,7 +31,7 @@ func DefaultConfig() *Config { return &Config{ KeepAliveInterval: 10 * time.Second, KeepAliveTimeout: 30 * time.Second, - MaxFrameSize: 65535, + MaxFrameSize: 32768, MaxReceiveBuffer: 4194304, } }