Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Commit

Permalink
disable the incoming streams limit
Browse files Browse the repository at this point in the history
This is now handled by the resource manager.
  • Loading branch information
marten-seemann committed Feb 8, 2022
1 parent 364372c commit 6b8a860
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package sm_yamux

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

"github.com/libp2p/go-libp2p-core/network"
Expand All @@ -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)
}

Expand Down

0 comments on commit 6b8a860

Please sign in to comment.