Increase read/write timeout for HTTP server

This commit is contained in:
Frédéric Guillot 2018-04-14 13:52:53 -07:00
parent dcbb5047b1
commit 4cdb2f820b
1 changed files with 2 additions and 2 deletions

View File

@ -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),