mirror of https://github.com/status-im/consul.git
Merge pull request #691 from artushin/master
close idle connections after stopping http checks to service
This commit is contained in:
commit
907bbfa8c9
|
@ -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:
|
||||||
|
http.DefaultTransport.(*http.Transport).CloseIdleConnections()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue