Skip to content

Commit 3f8779e

Browse files
authored
Merge pull request #266 from Recidiviz/dan/write-timeout
Increase request timeout to avoid `failed to add job: job already created` errors
2 parents e5c0d87 + 65eafe1 commit 3f8779e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ func (s *Server) Serve(ctx context.Context, httpAddr, grpcAddr string) error {
212212
httpServer := &http.Server{
213213
Handler: s.Handler,
214214
Addr: httpAddr,
215-
WriteTimeout: 15 * time.Second,
215+
WriteTimeout: 5 * time.Minute,
216216
ReadTimeout: 15 * time.Second,
217217
}
218218
s.httpServer = httpServer

0 commit comments

Comments
 (0)