提交 8b6c6645 作者: 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: 's avatarSteven Allen <steven@stebalien.com>
上级 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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论