MEDIUM: stream: always call si_cs_recv() after a failed buffer allocation
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Oct 2018 08:28:27 +0000 (10:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Oct 2018 12:47:00 +0000 (13:47 +0100)
commit18e066c2e7e6275d27383356c108cda0d17ad920
tree96245972d8b2fe835377fb37a974923a41de93b1
parent581abd3f9923387882be97652843cb309396e123
MEDIUM: stream: always call si_cs_recv() after a failed buffer allocation

If a buffer allocation failed, we have SI_FL_WAIT_ROOM set and c_size(buf)
being zero. It's the only moment where we have a new opportunity to try to
allocate this buffer. However we don't want to waste our time trying this
if both are non-null since it indicates missing room without any changed
condition.
src/stream.c