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/src/debug.c b/src/debug.c
index 1e83c11..0ccb29f 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -306,7 +306,7 @@
if (ci_putchk(cs_ic(cs), &trash) == -1) {
/* failed, try again */
- si_rx_room_blk(cs->si);
+ cs_rx_room_blk(cs);
appctx->st1 = thr;
return 0;
}
@@ -1174,7 +1174,7 @@
chunk_appendf(&trash, "\n");
if (ci_putchk(cs_ic(cs), &trash) == -1) {
- si_rx_room_blk(cs->si);
+ cs_rx_room_blk(cs);
appctx->ctx.cli.i0 = fd;
ret = 0;
break;
@@ -1274,7 +1274,7 @@
(unsigned long)(ptr->calls ? (ptr->size / ptr->calls) : 0));
if (ci_putchk(cs_ic(cs), &trash) == -1) {
- si_rx_room_blk(cs->si);
+ cs_rx_room_blk(cs);
appctx->ctx.cli.p0 = ptr;
ret = 0;
break;