From bec9819d218a1c4f076535e9b17b3a6fc5058b59 Mon Sep 17 00:00:00 2001 From: Matus Fabian Date: Fri, 25 Apr 2025 06:14:45 -0400 Subject: [PATCH] hsa: http_tps confirm data read notify http transport when body data is read and transport requested notification (e.g. used by h2 flow control) Type: improvement Change-Id: I5c900c19e1c4d14c907984148254316b2b6bd9d0 Signed-off-by: Matus Fabian --- src/plugins/hs_apps/http_tps.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/hs_apps/http_tps.c b/src/plugins/hs_apps/http_tps.c index ac6b6c79a70..486d4a525e3 100644 --- a/src/plugins/hs_apps/http_tps.c +++ b/src/plugins/hs_apps/http_tps.c @@ -345,6 +345,11 @@ hts_session_rx_body (hts_session_t *hs, session_t *ts) ASSERT (rv == n_deq); } hs->left_recv -= n_deq; + if (svm_fifo_needs_deq_ntf (ts->rx_fifo, n_deq)) + { + svm_fifo_clear_deq_ntf (ts->rx_fifo); + session_program_transport_io_evt (ts->handle, SESSION_IO_EVT_RX); + } if (hs->close_threshold > 0) { -- 2.16.6