From 2384838cc485de6c4282b91aa2d1da7316183050 Mon Sep 17 00:00:00 2001 From: Pavel Tatarskiy Date: Fri, 16 Jul 2021 18:53:43 +0300 Subject: [PATCH] remove timeouts --- services/web.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/services/web.go b/services/web.go index 4850adf..a9477e4 100644 --- a/services/web.go +++ b/services/web.go @@ -5,7 +5,6 @@ import ( "io" "net" "net/http" - "time" logrusmiddleware "github.com/bakins/logrus-middleware" joonix "github.com/joonix/log" @@ -58,9 +57,9 @@ func (s *Web) Serve() error { } log.Infof("Serving Web at %v", addr) srv := &http.Server{ - Handler: l.Handler(mux, ""), - ReadTimeout: 5 * time.Minute, - WriteTimeout: 5 * time.Minute, + Handler: l.Handler(mux, ""), + // ReadTimeout: 5 * time.Minute, + // WriteTimeout: 5 * time.Minute, MaxHeaderBytes: 50 << 20, } return srv.Serve(ln)