fix: increase RW http server timeouts, since now we stream the content:

A download of 500MB on 40Mb/s could never finish
This commit is contained in:
HeshamTB 2023-09-15 18:49:12 +03:00
parent 9532b70458
commit c36275d07b

View File

@ -361,8 +361,8 @@ func main() {
wrappedHandler := NewLogger(handler) wrappedHandler := NewLogger(handler)
srv := http.Server{ srv := http.Server{
ReadTimeout: 10 * time.Second, ReadTimeout: 60 * time.Second,
WriteTimeout: 10 * time.Second, WriteTimeout: 60 * time.Second,
Addr: ":" + DEFAULT_HTTP_PORT, Addr: ":" + DEFAULT_HTTP_PORT,
Handler: wrappedHandler, Handler: wrappedHandler,
} }