MEDIUM: stream-int/conn-stream: Move blocking flags from SI to CS
Remaining flags and associated functions are move in the conn-stream
scope. These flags are added on the endpoint and not the conn-stream
itself. This way it will be possible to get them from the mux or the
applet. The functions to get or set these flags are renamed accordingly with
the "cs_" prefix and updated to manipualte a conn-stream instead of a
stream-interface.
diff --git a/addons/promex/service-prometheus.c b/addons/promex/service-prometheus.c
index 8560409..078b442 100644
--- a/addons/promex/service-prometheus.c
+++ b/addons/promex/service-prometheus.c
@@ -1303,7 +1303,7 @@
return 1;
full:
- si_rx_room_blk(cs->si);
+ cs_rx_room_blk(cs);
return 0;
error:
/* unrecoverable error */
@@ -1448,7 +1448,7 @@
return 1;
full:
htx_reset(htx);
- si_rx_room_blk(cs->si);
+ cs_rx_room_blk(cs);
return 0;
}
@@ -1478,7 +1478,7 @@
/* Check if the input buffer is available. */
if (!b_size(&res->buf)) {
- si_rx_room_blk(cs->si);
+ cs_rx_room_blk(cs);
goto out;
}
@@ -1519,7 +1519,7 @@
*/
if (htx_is_empty(res_htx)) {
if (!htx_add_endof(res_htx, HTX_BLK_EOT)) {
- si_rx_room_blk(cs->si);
+ cs_rx_room_blk(cs);
goto out;
}
channel_add_input(res, 1);