Skip to content

Commit

Permalink
Merge pull request CovenantSQL#246 from CovenantSQL/bugfix/obAPITimeout
Browse files Browse the repository at this point in the history
Make observer API writeTimeout = 10 * readTimeout
  • Loading branch information
auxten authored Jan 31, 2019
2 parents 01ce6af + 40b9c07 commit a78202f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/cql-observer/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ func startAPI(service *Service, listenAddr string) (server *http.Server, err err

server = &http.Server{
Addr: listenAddr,
WriteTimeout: apiTimeout,
WriteTimeout: apiTimeout * 10,
ReadTimeout: apiTimeout,
IdleTimeout: apiTimeout,
Handler: router,
Expand Down

0 comments on commit a78202f

Please sign in to comment.