Unverified Commit 0dde69a0 authored by Marten Seemann's avatar Marten Seemann Committed by GitHub
Browse files

Merge pull request #30 from libp2p/stream-limits

allow 1000 bidirectional streams, disable unidirectional streams
parents 6d5dbb82 2ac47edc
...@@ -19,6 +19,8 @@ import ( ...@@ -19,6 +19,8 @@ import (
) )
var quicConfig = &quic.Config{ var quicConfig = &quic.Config{
MaxIncomingStreams: 1000,
MaxIncomingUniStreams: -1, // disable unidirectional streams
MaxReceiveStreamFlowControlWindow: 3 * (1 << 20), // 3 MB MaxReceiveStreamFlowControlWindow: 3 * (1 << 20), // 3 MB
MaxReceiveConnectionFlowControlWindow: 4.5 * (1 << 20), // 4.5 MB MaxReceiveConnectionFlowControlWindow: 4.5 * (1 << 20), // 4.5 MB
Versions: []quic.VersionNumber{101}, Versions: []quic.VersionNumber{101},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment