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

Commit

Permalink
Merge pull request #108 from libp2p/increase-receive-window
Browse files Browse the repository at this point in the history
increase the stream and connection receive windows
  • Loading branch information
Stebalien committed Feb 28, 2020
2 parents 675940d + 582a441 commit 6d8b0e7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ import (

quic "github.com/lucas-clemente/quic-go"
ma "github.com/multiformats/go-multiaddr"
"github.com/multiformats/go-multiaddr-fmt"
mafmt "github.com/multiformats/go-multiaddr-fmt"
manet "github.com/multiformats/go-multiaddr-net"
)

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
MaxIncomingUniStreams: -1, // disable unidirectional streams
MaxReceiveStreamFlowControlWindow: 10 * (1 << 20), // 10 MB
MaxReceiveConnectionFlowControlWindow: 15 * (1 << 20), // 15 MB
AcceptToken: func(clientAddr net.Addr, _ *quic.Token) bool {
// TODO(#6): require source address validation when under load
return true
Expand Down

0 comments on commit 6d8b0e7

Please sign in to comment.