mirror of https://github.com/hashicorp/consul
close idle connections after stopping http checks to service
parent
79d28b9baf
commit
5ec92971ac
|
@ -325,6 +325,7 @@ func (c *CheckHTTP) run() {
|
||||||
c.check()
|
c.check()
|
||||||
next = time.After(c.Interval)
|
next = time.After(c.Interval)
|
||||||
case <-c.stopCh:
|
case <-c.stopCh:
|
||||||
|
c.httpClient.Transport.(*http.Transport).CloseIdleConnections()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue