Merge pull request #691 from artushin/master

close idle connections after stopping http checks to service
This commit is contained in:
Armon Dadgar 2015-02-12 17:05:31 -08:00
commit 907bbfa8c9
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:
http.DefaultTransport.(*http.Transport).CloseIdleConnections()
return
}
}