make the number of incoming streams configurable, for gQUIC

This commit is contained in:
Marten Seemann
2018-02-23 13:46:33 +08:00
parent 58b20c6009
commit 245af2c596
6 changed files with 22 additions and 12 deletions

View File

@@ -179,6 +179,7 @@ type Config struct {
// If set to a negative value, it doesn't allow any bidirectional streams.
MaxIncomingStreams int
// MaxIncomingUniStreams is the maximum number of concurrent unidirectional streams that a peer is allowed to open.
// This value doesn't have any effect in Google QUIC.
// If not set, it will default to 100.
// If set to a negative value, it doesn't allow any unidirectional streams.
MaxIncomingUniStreams int