Skip to content

Commit

Permalink
Merge pull request #266 from Recidiviz/dan/write-timeout
Browse files Browse the repository at this point in the history
Increase request timeout to avoid `failed to add job: job already created` errors
  • Loading branch information
goccy authored Mar 14, 2024
2 parents e5c0d87 + 65eafe1 commit 3f8779e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func (s *Server) Serve(ctx context.Context, httpAddr, grpcAddr string) error {
httpServer := &http.Server{
Handler: s.Handler,
Addr: httpAddr,
WriteTimeout: 15 * time.Second,
WriteTimeout: 5 * time.Minute,
ReadTimeout: 15 * time.Second,
}
s.httpServer = httpServer
Expand Down

0 comments on commit 3f8779e

Please sign in to comment.