From 2bf99123ef88c0a7af5ddd1cdc581f5d80b75b0b Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 23 Feb 2023 13:44:31 +0100 Subject: [PATCH] MINOR: stconn: Add functions to set/clear SE_FL_EXP_NO_DATA flag from endpoint se_expect_data() and se_expect_no_data() should be used from the endpoint to inform upper layer it expects data or not from the opposite endpoint. --- include/haproxy/stconn.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/haproxy/stconn.h b/include/haproxy/stconn.h index 10395accd..27e61071b 100644 --- a/include/haproxy/stconn.h +++ b/include/haproxy/stconn.h @@ -105,6 +105,16 @@ static inline void se_fl_set_error(struct sedesc *se) se_fl_set(se, SE_FL_ERR_PENDING); } +static inline void se_expect_no_data(struct sedesc *se) +{ + se_fl_set(se, SE_FL_EXP_NO_DATA); +} + +static inline void se_expect_data(struct sedesc *se) +{ + se_fl_clr(se, SE_FL_EXP_NO_DATA); +} + /* stream connector version */ static forceinline void sc_ep_zero(struct stconn *sc) { -- 2.47.3