From c2234aebc799fb77162255e30bde96fa91d6cad2 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 5 Mar 2026 17:41:31 +0100 Subject: [PATCH] MEDIUM: stconn: Remove .wake() callback function from app_ops .wake() callback function is no longer used by endpoints. So it can be removed from the app_ops structure. --- include/haproxy/stconn-t.h | 1 - src/stconn.c | 5 ----- 2 files changed, 6 deletions(-) diff --git a/include/haproxy/stconn-t.h b/include/haproxy/stconn-t.h index 08cbf1b38..a9fbac270 100644 --- a/include/haproxy/stconn-t.h +++ b/include/haproxy/stconn-t.h @@ -358,7 +358,6 @@ struct sc_app_ops { void (*chk_snd)(struct stconn *); /* chk_snd function, may not be null */ void (*abort)(struct stconn *); /* abort function, may not be null */ void (*shutdown)(struct stconn *); /* shutdown function, may not be null */ - int (*wake)(struct stconn *); /* data-layer callback to report activity */ char name[8]; /* data layer name, zero-terminated */ }; diff --git a/src/stconn.c b/src/stconn.c index 0a92b569d..d2330f1ab 100644 --- a/src/stconn.c +++ b/src/stconn.c @@ -56,7 +56,6 @@ struct sc_app_ops sc_app_conn_ops = { .chk_snd = sc_app_chk_snd_conn, .abort = sc_app_abort_conn, .shutdown= sc_app_shut_conn, - .wake = sc_conn_process, .name = "STRM", }; @@ -66,7 +65,6 @@ struct sc_app_ops sc_app_embedded_ops = { .chk_snd = sc_app_chk_snd, .abort = sc_app_abort, .shutdown= sc_app_shut, - .wake = NULL, /* may never be used */ .name = "NONE", /* may never be used */ }; @@ -76,7 +74,6 @@ struct sc_app_ops sc_app_applet_ops = { .chk_snd = sc_app_chk_snd_applet, .abort = sc_app_abort_applet, .shutdown= sc_app_shut_applet, - .wake = sc_applet_process, .name = "STRM", }; @@ -86,7 +83,6 @@ struct sc_app_ops sc_app_check_ops = { .chk_snd = NULL, .abort = NULL, .shutdown= NULL, - .wake = wake_srv_chk, .name = "CHCK", }; @@ -95,7 +91,6 @@ struct sc_app_ops sc_app_hstream_ops = { .chk_snd = NULL, .abort = NULL, .shutdown= NULL, - .wake = hstream_wake, .name = "HTERM", };