Extend quic idle timeout

This commit is contained in:
wweir
2019-01-15 08:26:06 +08:00
parent f76f31d054
commit e9f5fc4789
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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) {
+1 -1
View File
@@ -19,7 +19,7 @@ func NewServer() *server {
HandshakeTimeout: 5 * time.Second,
MaxIncomingStreams: 1024,
KeepAlive: true,
IdleTimeout: 30 * time.Second,
IdleTimeout: 5 * time.Minute,
},
}
}