Commit 8b6c6645 authored by Steven Allen's avatar Steven Allen

lower yamux accept buffer size

Should *massively* reduce the amount of memory used by each peer (by 60KiB).

License: MIT
Signed-off-by: default avatarSteven Allen <steven@stebalien.com>
parent b5794c44
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment