1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-29 01:12:24 +08:00

Merge pull request #4326 from ipfs/fix/sane-accept-buffer-size

lower yamux accept buffer size
This commit is contained in:
Jeromy Johnson
2017-10-20 12:46:40 +01:00
committed by GitHub

View File

@ -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,