From 40dbede0656f2b116f1863686a6b7bec670ed585 Mon Sep 17 00:00:00 2001 From: Vivek Singh Date: Fri, 15 Feb 2019 20:21:40 +0530 Subject: [PATCH] Reduce timeout value metrics server to 5 second Signed-off-by: Vivek Singh --- gateway/server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/server.go b/gateway/server.go index 2c5107c1..d8f70950 100644 --- a/gateway/server.go +++ b/gateway/server.go @@ -235,8 +235,8 @@ func runMetricsServer() { router.HandleFunc("/healthz", healthzHandler) port := 8082 - readTimeout := time.Duration(30) * time.Second - writeTimeout := time.Duration(30) * time.Second + readTimeout := time.Duration(5) * time.Second + writeTimeout := time.Duration(5) * time.Second s := &http.Server{ Addr: fmt.Sprintf(":%d", port),