From 5cb13659031fcfc7423ec25d76284ce2009489f2 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Mon, 19 Oct 2020 23:42:40 +0200 Subject: [PATCH] increase idle timeout --- peer/http3/server.go | 2 +- peer/http3/store.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/peer/http3/server.go b/peer/http3/server.go index 415f640..d0a39e1 100644 --- a/peer/http3/server.go +++ b/peer/http3/server.go @@ -65,7 +65,7 @@ func (s *Server) Start(address string) error { log.Println("HTTP3 peer listening on " + address) quicConf := &quic.Config{ HandshakeTimeout: 4 * time.Second, - MaxIdleTimeout: 5 * time.Second, + MaxIdleTimeout: 10 * time.Second, } r := mux.NewRouter() r.HandleFunc("/get/{hash}", func(w http.ResponseWriter, r *http.Request) { diff --git a/peer/http3/store.go b/peer/http3/store.go index 1b3c3bc..dea0290 100644 --- a/peer/http3/store.go +++ b/peer/http3/store.go @@ -32,7 +32,7 @@ func NewStore(opts StoreOpts) *Store { func (p *Store) getClient() (*Client, error) { var qconf quic.Config qconf.HandshakeTimeout = 4 * time.Second - qconf.MaxIdleTimeout = 5 * time.Second + qconf.MaxIdleTimeout = 10 * time.Second pool, err := x509.SystemCertPool() if err != nil { return nil, err