haproxy/include
Willy Tarreau 1f9de21c38 MEDIUM: stream-int: make SI_FL_WANT_PUT reflect CF_DONT_READ
When CF_DONT_READ is set, till now we used to set SI_FL_WAIT_ROOM, which
is not appropriate since it would lose the subscribe status. Instead let's
clear SI_FL_WANT_PUT (just like applets do), and set the flag only when
CF_DONT_READ is cleared.

We have to do this in stream_int_update(), and in si_cs_io_cb() after
returning from si_cs_recv() since it would be a bit invasive to hack
this one for now. It must not be done in stream_int_notify() otherwise
it would re-enable blocked applets.

Last, when si_chk_rcv() is called, it immediately clears the flag before
calling ->chk_rcv() so that we are not tempted to uselessly loop on the
same call until the receive function is called. This is the same principle
as what is done with the applet scheduler.
2018-11-11 10:18:37 +01:00
..
common MINOR: compat: automatically detect support for crypt_r() 2018-10-29 19:14:14 +01:00
import
proto MEDIUM: stream-int: make SI_FL_WANT_PUT reflect CF_DONT_READ 2018-11-11 10:18:37 +01:00
types MINOR: stream-int: make it clear that si_ops cannot be null 2018-11-11 10:18:37 +01:00