mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-29 17:51:22 +02:00
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.
This commit is contained in:
parent
34cffede3a
commit
2bf99123ef
@ -105,6 +105,16 @@ static inline void se_fl_set_error(struct sedesc *se)
|
|||||||
se_fl_set(se, SE_FL_ERR_PENDING);
|
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 */
|
/* stream connector version */
|
||||||
static forceinline void sc_ep_zero(struct stconn *sc)
|
static forceinline void sc_ep_zero(struct stconn *sc)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user