From 4cdb2f820b5a2bd5cb211be09e6794f333355794 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Sat, 14 Apr 2018 13:52:53 -0700 Subject: [PATCH] Increase read/write timeout for HTTP server --- daemon/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/server.go b/daemon/server.go index 6ac49bda..d32cd687 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),