hsa: http_tps confirm data read 55/42855/2
authorMatus Fabian <[email protected]>
Fri, 25 Apr 2025 10:14:45 +0000 (06:14 -0400)
committerFlorin Coras <[email protected]>
Fri, 25 Apr 2025 16:29:25 +0000 (16:29 +0000)
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 <[email protected]>
src/plugins/hs_apps/http_tps.c

index ac6b6c7..486d4a5 100644 (file)
@@ -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)
     {