Skip to content

Commit

Permalink
Increase read/write timeout for HTTP server
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Apr 14, 2018
1 parent dcbb504 commit 4cdb2f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions daemon/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ func newServer(cfg *config.Config, store *storage.Storage, pool *scheduler.Worke
certDomain := cfg.CertDomain()
certCache := cfg.CertCache()
server := &http.Server{
ReadTimeout: 5 * time.Second,
WriteTimeout: 10 * time.Second,
ReadTimeout: 30 * time.Second,
WriteTimeout: 30 * time.Second,
IdleTimeout: 60 * time.Second,
Addr: cfg.ListenAddr(),
Handler: routes(cfg, store, feedHandler, pool, translator),
Expand Down

0 comments on commit 4cdb2f8

Please sign in to comment.