From 8b6c6645e261131f847c6316446db83f340f0563 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Thu, 19 Oct 2017 12:11:09 -0700 Subject: [PATCH] lower yamux accept buffer size Should *massively* reduce the amount of memory used by each peer (by 60KiB). License: MIT Signed-off-by: Steven Allen --- core/core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core.go b/core/core.go index aa55a6657..2326a273d 100644 --- a/core/core.go +++ b/core/core.go @@ -372,7 +372,7 @@ func makeSmuxTransport(mplexExp bool) smux.Transport { mstpt := mssmux.NewBlankTransport() ymxtpt := &yamux.Transport{ - AcceptBacklog: 8192, + AcceptBacklog: 512, ConnectionWriteTimeout: time.Second * 10, KeepAliveInterval: time.Second * 30, EnableKeepAlive: true,