close idle connections after stopping http checks to service

This commit is contained in:
artushin 2015-02-11 18:29:51 -06:00
parent 79d28b9baf
commit 5ec92971ac
1 changed files with 1 additions and 0 deletions

View File

@ -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
}
}