Skip to content

Commit

Permalink
remove timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
vintikzzz committed Jul 16, 2021
1 parent e572401 commit 2384838
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions services/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"io"
"net"
"net/http"
"time"

logrusmiddleware "github.com/bakins/logrus-middleware"
joonix "github.com/joonix/log"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2384838

Please sign in to comment.