From 24ff7caecb50e28f30b0981361e9c2ab67253392 Mon Sep 17 00:00:00 2001 From: xtaci Date: Tue, 12 Nov 2019 15:07:45 +0800 Subject: [PATCH] shrink per-direction buffer to 4k --- 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 45383cdf0..f569762bd 100644 --- a/client/main.go +++ b/client/main.go @@ -100,7 +100,7 @@ func main() { log.SetFlags(log.LstdFlags | log.Lshortfile) } xmitBuf.New = func() interface{} { - return make([]byte, 32768) + return make([]byte, 4096) } myApp := cli.NewApp() diff --git a/server/main.go b/server/main.go index ad51bf665..011312a60 100644 --- a/server/main.go +++ b/server/main.go @@ -164,7 +164,7 @@ func main() { log.SetFlags(log.LstdFlags | log.Lshortfile) } xmitBuf.New = func() interface{} { - return make([]byte, 32768) + return make([]byte, 4096) } myApp := cli.NewApp()