diff --git a/proxy/quic/client.go b/proxy/quic/client.go index 6a7cd48..2cdb898 100644 --- a/proxy/quic/client.go +++ b/proxy/quic/client.go @@ -20,7 +20,7 @@ func NewClient() *client { HandshakeTimeout: 5 * time.Second, MaxIncomingStreams: 1024, KeepAlive: true, - IdleTimeout: 30 * time.Second, + IdleTimeout: 5 * time.Minute, }, } } @@ -33,6 +33,7 @@ func (c *client) Dial(server string) (net.Conn, error) { c.sess = sess } } + c.sess.ConnectionState() var stream quic.Stream if err := WithTimeout(func() (err error) { diff --git a/proxy/quic/server.go b/proxy/quic/server.go index 56a095d..1881d98 100644 --- a/proxy/quic/server.go +++ b/proxy/quic/server.go @@ -19,7 +19,7 @@ func NewServer() *server { HandshakeTimeout: 5 * time.Second, MaxIncomingStreams: 1024, KeepAlive: true, - IdleTimeout: 30 * time.Second, + IdleTimeout: 5 * time.Minute, }, } }