Increase HTTP timeout

We have some clients that are on slow connections that have trouble
uploading large images due to timeout, and receive a “Guru Meditation”
from Varnish that it could not fetch.
This commit is contained in:
jordi fita mas 2024-03-05 12:05:00 +01:00
parent 365fed55b1
commit 75e0d8e197
1 changed files with 2 additions and 2 deletions

View File

@ -36,8 +36,8 @@ func main() {
srv := http.Server{
Addr: ":8080",
Handler: handler,
ReadTimeout: 5 * time.Second,
WriteTimeout: 10 * time.Second,
ReadTimeout: 60 * time.Second,
WriteTimeout: 60 * time.Second,
IdleTimeout: 2 * time.Minute,
}