From c36275d07b29341255f61b16fd7a4ecf1281b154 Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Fri, 15 Sep 2023 18:49:12 +0300 Subject: [PATCH] fix: increase RW http server timeouts, since now we stream the content: A download of 500MB on 40Mb/s could never finish --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 20833fc..a636b6a 100644 --- a/main.go +++ b/main.go @@ -361,8 +361,8 @@ func main() { wrappedHandler := NewLogger(handler) srv := http.Server{ - ReadTimeout: 10 * time.Second, - WriteTimeout: 10 * time.Second, + ReadTimeout: 60 * time.Second, + WriteTimeout: 60 * time.Second, Addr: ":" + DEFAULT_HTTP_PORT, Handler: wrappedHandler, }