From bf2abf14e7691acce291504d6dd52a9327036689 Mon Sep 17 00:00:00 2001 From: xtaci Date: Mon, 8 Aug 2016 10:50:46 +0800 Subject: [PATCH] change default socket buffer to 4MB(macOS default limit) --- 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 ca1572571..be3a68632 100644 --- a/client/main.go +++ b/client/main.go @@ -184,7 +184,7 @@ func main() { }, cli.IntFlag{ Name: "sockbuf", - Value: 16777216, // socket buffer size in bytes + Value: 4194304, // socket buffer size in bytes Hidden: true, }, cli.IntFlag{ diff --git a/server/main.go b/server/main.go index 92cd9fbe7..690dfb156 100644 --- a/server/main.go +++ b/server/main.go @@ -207,7 +207,7 @@ func main() { }, cli.IntFlag{ Name: "sockbuf", - Value: 16777216, // socket buffer size in bytes + Value: 4194304, // socket buffer size in bytes Hidden: true, }, cli.IntFlag{