From e8126faeddb5fb2526c3b39a002ba78aa25cf6bc Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Wed, 12 Oct 2016 17:29:29 +0100 Subject: [PATCH] Review feedback --- prog/app.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/prog/app.go b/prog/app.go index 6e9cb212a..fada21497 100644 --- a/prog/app.go +++ b/prog/app.go @@ -31,6 +31,7 @@ import ( const ( memcacheUpdateInterval = 1 * time.Minute + httpTimeout = 90 * time.Second ) var ( @@ -278,8 +279,8 @@ func appMain(flags appFlags) { Server: &http.Server{ Addr: flags.listen, Handler: handler, - ReadTimeout: 10 * time.Second, - WriteTimeout: 10 * time.Second, + ReadTimeout: httpTimeout, + WriteTimeout: httpTimeout, MaxHeaderBytes: 1 << 20, }, }