mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-30 17:53:21 -04:00 
			
		
		
		
	plugin/forward: fix ticker leak in golang (#5689)
This commit is contained in:
		| @@ -45,6 +45,7 @@ func newTransport(addr string) *Transport { | ||||
| // connManagers manages the persistent connection cache for UDP and TCP. | ||||
| func (t *Transport) connManager() { | ||||
| 	ticker := time.NewTicker(defaultExpire) | ||||
| 	defer ticker.Stop() | ||||
| Wait: | ||||
| 	for { | ||||
| 		select { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user