Skip to content

Commit

Permalink
Merge pull request #30 from libp2p/stream-limits
Browse files Browse the repository at this point in the history
allow 1000 bidirectional streams, disable unidirectional streams
  • Loading branch information
marten-seemann committed Aug 15, 2018
2 parents 31671cd + c3a5e86 commit 137965e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions p2p/transport/quic/transport.go
Expand Up @@ -19,6 +19,8 @@ import (
)

var quicConfig = &quic.Config{
MaxIncomingStreams: 1000,
MaxIncomingUniStreams: -1, // disable unidirectional streams
MaxReceiveStreamFlowControlWindow: 3 * (1 << 20), // 3 MB
MaxReceiveConnectionFlowControlWindow: 4.5 * (1 << 20), // 4.5 MB
Versions: []quic.VersionNumber{101},
Expand Down

0 comments on commit 137965e

Please sign in to comment.