MINOR: stream-int: add si_alloc_ibuf() to ease input buffer allocation
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Oct 2018 08:16:07 +0000 (10:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Oct 2018 12:47:00 +0000 (13:47 +0100)
commit0979916d3bffc2e87b903559cc793e822ef94c26
tree4f996de9cecfd0248771fae900885dbe4775d978
parentcda7f3f5c2f2bb0b9d9e74e0e3ec11df27bb4c6d
MINOR: stream-int: add si_alloc_ibuf() to ease input buffer allocation

This will supersed channel_alloc_buffer() while relying on it. It will
automatically adjust SI_FL_WAIT_ROOM on the stream-int depending on
success or failure to allocate this buffer.

It's worth noting that it could make sense to also set SI_FL_WANT_PUT
each time we do this to further simplify the code at user places such
as applets, but it would possibly not be easy to clean this flag
everywhere an rx operation stops.
include/proto/stream_interface.h