mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02: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
@ -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…
x
Reference in New Issue
Block a user