提交 5eca6ec0 作者: Steven Allen

yamux(fix): disable read buffer

I introduced this by accident in #6361 when I switched from explicitly
initializing everything to overriding specific config variables.
上级 c9b94652
......@@ -15,7 +15,8 @@ func makeSmuxTransportOption(mplexExp bool) libp2p.Option {
const mplexID = "/mplex/6.7.0"
ymxtpt := *yamux.DefaultTransport
ymxtpt.AcceptBacklog = 512
ymxtpt.AcceptBacklog = 512 // accepting streams can be slow sometimes.
ymxtpt.ReadBufSize = 0 // we buffer reads further down.
if os.Getenv("YAMUX_DEBUG") != "" {
ymxtpt.LogOutput = os.Stderr
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论