plugin/forward: fix ticker leak in golang (#5689)
This commit is contained in:
parent
006703c1b2
commit
26aae951e7
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ func newTransport(addr string) *Transport {
|
||||||
// connManagers manages the persistent connection cache for UDP and TCP.
|
// connManagers manages the persistent connection cache for UDP and TCP.
|
||||||
func (t *Transport) connManager() {
|
func (t *Transport) connManager() {
|
||||||
ticker := time.NewTicker(defaultExpire)
|
ticker := time.NewTicker(defaultExpire)
|
||||||
|
defer ticker.Stop()
|
||||||
Wait:
|
Wait:
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue