Skip to content

Commit

Permalink
fix(config): QUIC config with upgrade (#355)
Browse files Browse the repository at this point in the history
  • Loading branch information
fanweixiao committed Jul 26, 2022
1 parent 365e71c commit be83e59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/listener_default.go
Expand Up @@ -21,13 +21,13 @@ type defaultListener struct {
var DefalutQuicConfig = &quic.Config{
Versions: []quic.VersionNumber{quic.Version1, quic.VersionDraft29},
MaxIdleTimeout: time.Second * 5,
KeepAlive: true,
KeepAlivePeriod: time.Second * 2,
MaxIncomingStreams: 1000,
MaxIncomingUniStreams: 1000,
HandshakeIdleTimeout: time.Second * 3,
InitialStreamReceiveWindow: 1024 * 1024 * 2,
InitialConnectionReceiveWindow: 1024 * 1024 * 2,
DisablePathMTUDiscovery: true,
// DisablePathMTUDiscovery: true,
}

func newListener(conn net.PacketConn, tlsConfig *tls.Config, quicConfig *quic.Config) (*defaultListener, error) {
Expand Down

0 comments on commit be83e59

Please sign in to comment.