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

Commit

Permalink
reduce the maximum number of incoming streams to 256
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Dec 13, 2021
1 parent a71d18b commit 11f80c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ var quicDialContext = quic.DialContext // so we can mock it in tests
var HolePunchTimeout = 5 * time.Second

var quicConfig = &quic.Config{
MaxIncomingStreams: 1000,
MaxIncomingStreams: 256,
MaxIncomingUniStreams: -1, // disable unidirectional streams
MaxStreamReceiveWindow: 10 * (1 << 20), // 10 MB
MaxConnectionReceiveWindow: 15 * (1 << 20), // 15 MB
Expand Down

0 comments on commit 11f80c0

Please sign in to comment.