mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Clear cached udp connections on resolver Stop()
Signed-off-by: Santhosh Manohar <santhosh@docker.com>
This commit is contained in:
parent
82b88f274a
commit
9a91bbeb4f
1 changed files with 5 additions and 0 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue