Skip to content

Commit

Permalink
ReadTimeout added for http.Server
Browse files Browse the repository at this point in the history
  • Loading branch information
parMaster committed Jul 9, 2024
1 parent 3c7b233 commit 5d6e998
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/service/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ func (s *Server) startServer(ctx context.Context) {
Addr: s.cfg.Server.Listen,
Handler: s.router(ctx),
ReadHeaderTimeout: time.Second,
ReadTimeout: time.Second,
WriteTimeout: 30 * time.Second,
IdleTimeout: time.Second,
}
Expand Down

0 comments on commit 5d6e998

Please sign in to comment.