mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-09 08:51:28 -04:00
BUG/MEDIUM: dns: DNS resolution doesn't start
Patch f046f11561 introduced a regression:
DNS resolution doesn't start anymore, while it was supposed to make it
start with first health check.
Current patch fix this issue by triggering a new DNS resolution if the
last_resolution time is not set.
This commit is contained in:
parent
189363e35a
commit
f0d9370f6b
1 changed files with 1 additions and 1 deletions
|
|
@ -2155,7 +2155,7 @@ static struct task *process_chk(struct task *t)
|
|||
* if there has not been any name resolution for a longer period than
|
||||
* hold.valid, let's trigger a new one.
|
||||
*/
|
||||
if (tick_is_expired(tick_add(resolution->last_resolution, resolution->resolvers->hold.valid), now_ms)) {
|
||||
if (!resolution->last_resolution || tick_is_expired(tick_add(resolution->last_resolution, resolution->resolvers->hold.valid), now_ms)) {
|
||||
trigger_resolution(s);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue