MEDIUM: proxy: merge zombify_proxy() with stop_proxy()
The two functions don't need to be distinguished anymore since they have
all the necessary info to act as needed on their listeners. Let's just
pass via stop_proxy() and make it check for each listener which one to
close or not.
diff --git a/src/haproxy.c b/src/haproxy.c
index bd05430..f256dd8 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -3510,12 +3510,8 @@
px = proxies_list;
while (px != NULL) {
if (px->bind_proc && !px->disabled) {
- if (!(px->bind_proc & (1UL << proc))) {
- if (global.tune.options & GTUNE_SOCKET_TRANSFER)
- zombify_proxy(px);
- else
- stop_proxy(px);
- }
+ if (!(px->bind_proc & (1UL << proc)))
+ stop_proxy(px);
}
px = px->next;
}
@@ -3524,12 +3520,8 @@
px = cfg_log_forward;
while (px != NULL) {
if (px->bind_proc && !px->disabled) {
- if (!(px->bind_proc & (1UL << proc))) {
- if (global.tune.options & GTUNE_SOCKET_TRANSFER)
- zombify_proxy(px);
- else
- stop_proxy(px);
- }
+ if (!(px->bind_proc & (1UL << proc)))
+ stop_proxy(px);
}
px = px->next;
}