MEDIUM: stream-int: temporarily make si_chk_rcv() take care of SI_FL_WAIT_ROOM
authorWilly Tarreau <w@1wt.eu>
Wed, 7 Nov 2018 10:55:54 +0000 (11:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 11 Nov 2018 09:18:37 +0000 (10:18 +0100)
commit96aadd5c552e26e90453a8caa636d00afc777828
tree6351a76e56f642513bfe448b050cfee917be4622
parent57f08bb63b6bd79a1d3e46880c65cffa67a9a260
MEDIUM: stream-int: temporarily make si_chk_rcv() take care of SI_FL_WAIT_ROOM

This flag should already be cleared before calling the *chk_rcv() functions.
Before adapting all call places, let's first make sure si_chk_rcv() clears
it before calling them so that these functions do not have to check it again
and so that they do not adjust it. This function will only call the lower
layers if the SI_FL_WANT_PUT flag is present so that the endpoint can decide
not to be called (as done with applets).
include/proto/stream_interface.h
src/stream_interface.c