mirror of
https://github.com/coredns/coredns.git
synced 2025-10-29 09:14:17 -04:00
plugin/forward: fix panic when expire is configured as 0s (#4115)
Signed-off-by: Ruslan Drozhdzh <rdrozhdzh@infoblox.com>
This commit is contained in:
@@ -44,7 +44,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(t.expire)
|
ticker := time.NewTicker(defaultExpire)
|
||||||
Wait:
|
Wait:
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
|
|||||||
Reference in New Issue
Block a user