mirror of
https://github.com/status-im/consul.git
synced 2025-01-10 22:06:20 +00:00
close idle connections after stopping http checks to service
This commit is contained in:
parent
79d28b9baf
commit
5ec92971ac
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user