@cryptotaxi247 / kubo / commits / 8b6c6645e

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 <steven@stebalien.com>

Steven Allen committed Oct 19, 2017 at 12:11 UTC 8b6c6645e261131f847c6316446db83f340f0563
1 file changed +1 -1
core/core.go
+1 -1
@@ -372,7 +372,7 @@ func makeSmuxTransport(mplexExp bool) smux.Transport {
372 mstpt := mssmux.NewBlankTransport()
373
374 ymxtpt := &yamux.Transport{
375 - AcceptBacklog: 8192,
375 + AcceptBacklog: 512,
376 ConnectionWriteTimeout: time.Second * 10,
377 KeepAliveInterval: time.Second * 30,
378 EnableKeepAlive: true,