From d0f773db6dfab413ad87598297c6b424a6cc4724 Mon Sep 17 00:00:00 2001 From: Bartek Plotka Date: Tue, 27 Nov 2018 13:02:26 +0000 Subject: [PATCH] Removed srv timeouts for debug endpoints. This is due to: https://github.com/golang/go/issues/18746 Signed-off-by: Bartek Plotka --- cmd/kedge/main.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/kedge/main.go b/cmd/kedge/main.go index 74bce12..2413d46 100644 --- a/cmd/kedge/main.go +++ b/cmd/kedge/main.go @@ -334,8 +334,6 @@ func debugServer(logEntry *log.Entry, middlewares chi.Middlewares, noAuthMiddlew m.Handle("/debug/events", middlewares.HandlerFunc(trace.Events)) return &http.Server{ - WriteTimeout: *flagHttpMaxWriteTimeout, - ReadTimeout: *flagHttpMaxReadTimeout, ErrorLog: http_logrus.AsHttpLogger(logEntry.WithField(ctxtags.TagForScheme, "tls")), Handler: m, }, nil