1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #1025 from sanimej/fixes

Clear cached udp connections on resolver Stop()
This commit is contained in:
Madhu Venugopal 2016-03-16 09:24:11 -07:00
commit 40de5ef5e5

View file

@ -139,6 +139,11 @@ func (r *resolver) Start() error {
}
func (r *resolver) Stop() {
for i := 0; i < maxExtDNS; i++ {
r.extDNSList[i].extConn = nil
r.extDNSList[i].extOnce = sync.Once{}
}
if r.server != nil {
r.server.Shutdown()
}