Skip to content

Commit

Permalink
Merge pull request #908 from terencehonles/update-write-timeout
Browse files Browse the repository at this point in the history
feat: update HTTP server write timeout to 5 seconds
  • Loading branch information
jaqx0r authored Aug 5, 2024
2 parents 86809dc + 06d5ac8 commit d4b8a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/mtail/mtail.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func (m *Server) initHTTPServer() error {

srv := &http.Server{
ReadTimeout: 1 * time.Second,
WriteTimeout: 1 * time.Second,
WriteTimeout: 5 * time.Second,
IdleTimeout: 30 * time.Second,
ReadHeaderTimeout: 2 * time.Second,
Handler: mux,
Expand Down

0 comments on commit d4b8a71

Please sign in to comment.