mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-10 17:32:03 -04:00
MINOR: resolvers: Purge answer items when a SRV resolution triggers an error
When a SRV request trigger an error, if we decide to handle the error because last_valid duration is expired, the answer list may be purged. All items are considered as obsolete.
This commit is contained in:
parent
1dec5c7934
commit
51d5e3bda7
1 changed files with 2 additions and 0 deletions
|
|
@ -3293,6 +3293,8 @@ int srvrq_resolution_error_cb(struct resolv_requester *requester, int error_code
|
|||
HA_SPIN_UNLOCK(SERVER_LOCK, &s->lock);
|
||||
}
|
||||
|
||||
resolv_purge_resolution_answer_records(res);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue