From 75e0d8e197e5ed658824ff01b832bbfd42908e61 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Tue, 5 Mar 2024 12:05:00 +0100 Subject: [PATCH] Increase HTTP timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- cmd/camper/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/camper/main.go b/cmd/camper/main.go index 49453b1..4c9ed87 100644 --- a/cmd/camper/main.go +++ b/cmd/camper/main.go @@ -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, }