diff --git a/proxy/quic/client.go b/proxy/quic/client.go index 6b6000b..7c28ff4 100644 --- a/proxy/quic/client.go +++ b/proxy/quic/client.go @@ -18,10 +18,9 @@ type client struct { func NewClient() *client { return &client{ conf: &quic.Config{ - HandshakeTimeout: 5 * time.Second, - MaxIncomingStreams: 1024, - KeepAlive: true, - IdleTimeout: 5 * time.Minute, + HandshakeTimeout: time.Second, + KeepAlive: true, + IdleTimeout: time.Minute, }, } } diff --git a/proxy/quic/server.go b/proxy/quic/server.go index 1881d98..11f688a 100644 --- a/proxy/quic/server.go +++ b/proxy/quic/server.go @@ -2,7 +2,6 @@ package quic import ( "net" - "time" "github.com/golang/glog" quic "github.com/lucas-clemente/quic-go" @@ -16,10 +15,7 @@ type server struct { func NewServer() *server { return &server{ conf: &quic.Config{ - HandshakeTimeout: 5 * time.Second, MaxIncomingStreams: 1024, - KeepAlive: true, - IdleTimeout: 5 * time.Minute, }, } }