From: Christopher Faulet Date: Tue, 5 May 2026 13:51:24 +0000 (+0200) Subject: CLEANUP: haterm: Remove useless IS_HTX_SC() test X-Git-Tag: v3.4-dev11~40 X-Git-Url: http://www.kaiwu.me/postgresql/commit/static/gitweb.js?a=commitdiff_plain;h=3f7b2023c9e8a8d4e130e8fcdae392060add3fb8;p=haproxy.git CLEANUP: haterm: Remove useless IS_HTX_SC() test Haterm is an HTTP endpoint. No reason to test if its sc is an HTX sc or not. Let's remove Is_HTX_SC() test. --- diff --git a/src/haterm.c b/src/haterm.c index 9afd93e17..e5a74e32a 100644 --- a/src/haterm.c +++ b/src/haterm.c @@ -267,7 +267,7 @@ static int hstream_htx_buf_rcv(struct connection *conn, struct hstream *hs) while (sc_ep_test(hs->sc, SE_FL_RCV_MORE) || (!(conn->flags & CO_FL_ERROR) && !sc_ep_test(hs->sc, SE_FL_ERROR | SE_FL_EOS))) { htx_reset(htxbuf(&hs->req)); - max = (IS_HTX_SC(hs->sc) ? htx_free_space(htxbuf(&hs->req)) : b_room(&hs->req)); + max = htx_free_space(htxbuf(&hs->req)); sc_ep_clr(hs->sc, SE_FL_WANT_ROOM); read = CALL_MUX_WITH_RET(conn->mux, rcv_buf(hs->sc, &hs->req, max, 0)); cur_read += read;