From 5ec92971ac6705e2bcea3c3baacb53c55038e590 Mon Sep 17 00:00:00 2001 From: artushin Date: Wed, 11 Feb 2015 18:29:51 -0600 Subject: [PATCH] close idle connections after stopping http checks to service --- command/agent/check.go | 1 + 1 file changed, 1 insertion(+) diff --git a/command/agent/check.go b/command/agent/check.go index 352c986fe3..ff95272cc4 100644 --- a/command/agent/check.go +++ b/command/agent/check.go @@ -325,6 +325,7 @@ func (c *CheckHTTP) run() { c.check() next = time.After(c.Interval) case <-c.stopCh: + c.httpClient.Transport.(*http.Transport).CloseIdleConnections() return } }