diff options
author | Frédéric Guillot <fred@miniflux.net> | 2018-04-14 13:52:53 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2018-04-14 13:52:53 -0700 |
commit | 4cdb2f820b5a2bd5cb211be09e6794f333355794 (patch) | |
tree | 5d57e20b4b3502f7b262f2b8e72c47056102e41d /daemon | |
parent | dcbb5047b1cb9189ff270ead27a6e619e58f00c2 (diff) |
Increase read/write timeout for HTTP server
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/server.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/server.go b/daemon/server.go index 6ac49bd..d32cd68 100644 --- a/daemon/server.go +++ b/daemon/server.go @@ -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), |