Browse Source

disable the incoming streams limit (#49)

This is now handled by the resource manager.
pull/1439/head
Marten Seemann 3 years ago
committed by GitHub
parent
commit
af478a90b0
  1. 5
      p2p/muxer/yamux/transport.go

5
p2p/muxer/yamux/transport.go

@ -2,6 +2,7 @@ package sm_yamux
import (
"io/ioutil"
"math"
"net"
"github.com/libp2p/go-libp2p-core/network"
@ -24,7 +25,9 @@ func init() {
// We always run over a security transport that buffers internally
// (i.e., uses a block cipher).
config.ReadBufSize = 0
config.MaxIncomingStreams = 256
// Effectively disable the incoming streams limit.
// This is now dynamically limited by the resource manager.
config.MaxIncomingStreams = math.MaxUint32
DefaultTransport = (*Transport)(config)
}

Loading…
Cancel
Save