MINOR: stream-int: replace si_cant_put() with si_rx_room_{blk,rdy}()
Remaining calls to si_cant_put() were all for lack of room and were
turned to si_rx_room_blk(). A few places where SI_FL_RXBLK_ROOM was
cleared by hand were converted to si_rx_room_rdy().
The now unused si_cant_put() function was removed.
diff --git a/src/map.c b/src/map.c
index 859ad89..7eb9e36 100644
--- a/src/map.c
+++ b/src/map.c
@@ -381,7 +381,7 @@
*/
LIST_ADDQ(&elt->back_refs, &appctx->ctx.map.bref.users);
HA_SPIN_UNLOCK(PATREF_LOCK, &appctx->ctx.map.ref->lock);
- si_cant_put(si);
+ si_rx_room_blk(si);
return 0;
}
@@ -410,7 +410,7 @@
chunk_reset(&trash);
chunk_appendf(&trash, "# id (file) description\n");
if (ci_putchk(si_ic(si), &trash) == -1) {
- si_cant_put(si);
+ si_rx_room_blk(si);
return 0;
}
@@ -440,7 +440,7 @@
/* let's try again later from this stream. We add ourselves into
* this stream's users so that it can remove us upon termination.
*/
- si_cant_put(si);
+ si_rx_room_blk(si);
return 0;
}
@@ -561,7 +561,7 @@
* this stream's users so that it can remove us upon termination.
*/
HA_SPIN_UNLOCK(PATREF_LOCK, &appctx->ctx.map.ref->lock);
- si_cant_put(si);
+ si_rx_room_blk(si);
return 0;
}