From e9f5fc47899a41f9eec83afdcdc596c32482176a Mon Sep 17 00:00:00 2001 From: wweir Date: Tue, 15 Jan 2019 08:26:06 +0800 Subject: [PATCH] Extend quic idle timeout --- proxy/quic/client.go | 3 ++- proxy/quic/server.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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, }, } }