projects
/
haproxy-2.3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
656b427
)
MINOR: resolvers: Purge answer items when a SRV resolution triggers an error
author
Christopher Faulet
<cfaulet@haproxy.com>
Wed, 10 Mar 2021 14:46:46 +0000
(15:46 +0100)
committer
Christopher Faulet
<cfaulet@haproxy.com>
Tue, 16 Mar 2021 08:35:37 +0000
(09:35 +0100)
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.
(cherry picked from commit
51d5e3bda7fb07a5f03cb878dd66f673c3ed1a59
)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/server.c
patch
|
blob
|
history
diff --git
a/src/server.c
b/src/server.c
index
1015eef
..
dcc2a6a
100644
(file)
--- a/
src/server.c
+++ b/
src/server.c
@@
-3995,6
+3995,8
@@
int srvrq_resolution_error_cb(struct dns_requester *requester, int error_code)
HA_SPIN_UNLOCK(SERVER_LOCK, &s->lock);
}
+ dns_purge_resolution_answer_records(res);
+
return 1;
}