Skip to content

Commit d4b8a71

Browse files
authored
Merge pull request #908 from terencehonles/update-write-timeout
feat: update HTTP server write timeout to 5 seconds
2 parents 86809dc + 06d5ac8 commit d4b8a71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/mtail/mtail.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (m *Server) initHTTPServer() error {
124124

125125
srv := &http.Server{
126126
ReadTimeout: 1 * time.Second,
127-
WriteTimeout: 1 * time.Second,
127+
WriteTimeout: 5 * time.Second,
128128
IdleTimeout: 30 * time.Second,
129129
ReadHeaderTimeout: 2 * time.Second,
130130
Handler: mux,

0 commit comments

Comments
 (0)