Browse Source

Fix QUIC disconnecting issue (#475)

Co-authored-by: RPRX <63339210+rprx@users.noreply.github.com>
pull/202/merge
Bhoppi Chaw 4 years ago committed by GitHub
parent
commit
bf94fb53ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      transport/internet/quic/dialer.go
  2. 2
      transport/internet/quic/hub.go

2
transport/internet/quic/dialer.go

@ -148,7 +148,7 @@ func (s *clientSessions) openConnection(destAddr net.Addr, config *Config, tlsCo
quicConfig := &quic.Config{
ConnectionIDLength: 12,
MaxIdleTimeout: time.Second * 30,
KeepAlive: true,
}
conn, err := wrapSysConn(rawConn, config)

2
transport/internet/quic/hub.go

@ -103,7 +103,7 @@ func Listen(ctx context.Context, address net.Address, port net.Port, streamSetti
quicConfig := &quic.Config{
ConnectionIDLength: 12,
MaxIdleTimeout: time.Second * 45,
KeepAlive: true,
MaxIncomingStreams: 32,
MaxIncomingUniStreams: -1,
}

Loading…
Cancel
Save