Skip to content

Commit 9a65902

Browse files
committed
fix(balancer) do not reschedule resolve timer when reloading
1 parent f6aae6f commit 9a65902

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

kong/runloop/balancer/targets.lua

+5-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,11 @@ end
229229

230230

231231
-- Timer invoked to update DNS records
232-
function resolve_timer_callback()
232+
function resolve_timer_callback(premature)
233+
if premature then
234+
return
235+
end
236+
233237
local now = ngx_now()
234238

235239
while (renewal_heap:peekValue() or math.huge) < now do

0 commit comments

Comments
 (0)