all: sync with master

This commit is contained in:
Ainar Garipov
2024-06-05 19:00:28 +03:00
parent 1ccf8fe116
commit 1807198a9b
17 changed files with 108 additions and 71 deletions

View File

@@ -23,6 +23,7 @@ import (
"golang.org/x/net/http2/h2c"
)
// TODO(a.garipov): Make configurable.
const (
// readTimeout is the maximum duration for reading the entire request,
// including the body.
@@ -31,7 +32,7 @@ const (
readHdrTimeout = 60 * time.Second
// writeTimeout is the maximum duration before timing out writes of the
// response.
writeTimeout = 60 * time.Second
writeTimeout = 5 * time.Minute
)
type webConfig struct {