Skip to content

Commit

Permalink
feat: update HTTP server write timeout to 5 seconds
Browse files Browse the repository at this point in the history
This change updates the HTTP server's write timeout to 5 seconds to
ensure the exporters have enough time to write their output.
  • Loading branch information
terencehonles committed Aug 5, 2024
1 parent f29bb2b commit 06d5ac8
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 06d5ac8

Please sign in to comment.