From 06d5ac873cf46db657679d0d49fab216bd1d147f Mon Sep 17 00:00:00 2001 From: "Terence D. Honles" Date: Mon, 5 Aug 2024 16:50:22 +0200 Subject: [PATCH] feat: update HTTP server write timeout to 5 seconds This change updates the HTTP server's write timeout to 5 seconds to ensure the exporters have enough time to write their output. --- internal/mtail/mtail.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/mtail/mtail.go b/internal/mtail/mtail.go index 0e3cf2b49..073cefdee 100644 --- a/internal/mtail/mtail.go +++ b/internal/mtail/mtail.go @@ -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,