From: Christopher Faulet Date: Tue, 21 Mar 2023 09:50:16 +0000 (+0100) Subject: MINOR: stconn: Remove unecessary test on SE_FL_EOS before receiving data X-Git-Tag: v2.8-dev7~97 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9bce9724ec04eeb848438bf912ef3fbd445f22cc;p=thirdparty%2Fhaproxy.git MINOR: stconn: Remove unecessary test on SE_FL_EOS before receiving data In sc_conn_recv(), if the EOS is reported by the endpoint, it will always be acknowledged by the SC and a read0 will be performed on the input channel. Thus there is no reason to still test at the begining of the function because there is already a test on CF_SHUTR. --- diff --git a/src/stconn.c b/src/stconn.c index c4e26be865..f8dfb7a38d 100644 --- a/src/stconn.c +++ b/src/stconn.c @@ -1196,10 +1196,6 @@ static int sc_conn_recv(struct stconn *sc) if (!conn->mux) return 0; - /* stop here if we reached the end of data */ - if (sc_ep_test(sc, SE_FL_EOS)) - goto end_recv; - /* stop immediately on errors. Note that we DON'T want to stop on * POLL_ERR, as the poller might report a write error while there * are still data available in the recv buffer. This typically