Skip to content

Commit

Permalink
Up write timeout to 60 seconds (mainly to cover long feed/batch repon…
Browse files Browse the repository at this point in the history
…ses)
  • Loading branch information
efixler committed Apr 5, 2024
1 parent 2caf838 commit 44e6f17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/scrape-server/main.go
Expand Up @@ -69,7 +69,7 @@ func main() {
Addr: fmt.Sprintf(":%d", port.Get()),
Handler: mux,
ReadTimeout: 10 * time.Second,
WriteTimeout: 30 * time.Second,
WriteTimeout: 60 * time.Second, // some feed/batch requests can be slow to complete
IdleTimeout: 60 * time.Second,
MaxHeaderBytes: 1 << 16,
}
Expand Down

0 comments on commit 44e6f17

Please sign in to comment.