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

reduce the number of max incoming stream to 256 #41

Merged
merged 2 commits into from
Dec 12, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"io/ioutil"
"net"

mux "github.com/libp2p/go-libp2p-core/mux"
"github.com/libp2p/go-libp2p-core/mux"
"github.com/libp2p/go-yamux/v2"
)

Expand All @@ -23,6 +23,7 @@ func init() {
// We always run over a security transport that buffers internally
// (i.e., uses a block cipher).
config.ReadBufSize = 0
config.MaxIncomingStreams = 256
DefaultTransport = (*Transport)(config)
}

Expand Down