From 786218c5f2b5e740b8441527f79836eb1e7cd4f6 Mon Sep 17 00:00:00 2001 From: Espen Braastad Date: Sat, 14 Dec 2024 23:35:24 +0100 Subject: [PATCH] Add log entries to print the timeouts on startup --- http.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/http.go b/http.go index 16db0dc..dfe4fe3 100644 --- a/http.go +++ b/http.go @@ -207,6 +207,11 @@ func (h *HTTP) Run() { handler = handlers.ProxyHeaders(handler) } + fmt.Printf("HTTP server read timeout: %s\n", h.config.ReadTimeout) + fmt.Printf("HTTP server read header timeout: %s\n", h.config.ReadHeaderTimeout) + fmt.Printf("HTTP server idle timeout: %s\n", h.config.IdleTimeout) + fmt.Printf("HTTP server write timeout: %s\n", h.config.WriteTimeout) + // Set up the server srv := &http.Server{ Addr: fmt.Sprintf("%s:%d", h.config.HttpHost, h.config.HttpPort),