Skip to content

Commit

Permalink
Revert "disable the incoming streams limit (libp2p#49)"
Browse files Browse the repository at this point in the history
This reverts commit 8362c93.
  • Loading branch information
mudler committed Feb 20, 2022
1 parent 90fad39 commit a468b63
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package sm_yamux

import (
"io/ioutil"
"math"
"net"

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

Expand Down

0 comments on commit a468b63

Please sign in to comment.