increase idle timeout
This commit is contained in:
parent
e430c2fd40
commit
5cb1365903
2 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ func (s *Server) Start(address string) error {
|
||||||
log.Println("HTTP3 peer listening on " + address)
|
log.Println("HTTP3 peer listening on " + address)
|
||||||
quicConf := &quic.Config{
|
quicConf := &quic.Config{
|
||||||
HandshakeTimeout: 4 * time.Second,
|
HandshakeTimeout: 4 * time.Second,
|
||||||
MaxIdleTimeout: 5 * time.Second,
|
MaxIdleTimeout: 10 * time.Second,
|
||||||
}
|
}
|
||||||
r := mux.NewRouter()
|
r := mux.NewRouter()
|
||||||
r.HandleFunc("/get/{hash}", func(w http.ResponseWriter, r *http.Request) {
|
r.HandleFunc("/get/{hash}", func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
|
@ -32,7 +32,7 @@ func NewStore(opts StoreOpts) *Store {
|
||||||
func (p *Store) getClient() (*Client, error) {
|
func (p *Store) getClient() (*Client, error) {
|
||||||
var qconf quic.Config
|
var qconf quic.Config
|
||||||
qconf.HandshakeTimeout = 4 * time.Second
|
qconf.HandshakeTimeout = 4 * time.Second
|
||||||
qconf.MaxIdleTimeout = 5 * time.Second
|
qconf.MaxIdleTimeout = 10 * time.Second
|
||||||
pool, err := x509.SystemCertPool()
|
pool, err := x509.SystemCertPool()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
Loading…
Reference in a new issue