mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-06 15:17:01 +02:00
The following flags are not at all related to the endpoint but to the connector itself: - SE_FL_RXBLK_ROOM - SE_FL_RXBLK_BUFF - SE_FL_RXBLK_CHAN As such they have no business staying in the endpoint descriptor and they must move to the stream connector. They've also been renamed accordingly to better match what they correspond to (the same name as the function that sets them). The rare occurrences of cs_rx_blocked() were replaced by an explicit test on the list of flags. The reason is that cs_rx_blocked() used to preserve some tests that are not needed at certain places since already known. For the same reason SE_FL_RXBLK_ANY wasn't converted. As such it will later be possible to carefully review these few locations and eliminate the unneeded flags from the tests. No particular function was made to test them since they're explicit enough. It now looks like ci_putchk() and friends could very well place the flag themselves on the connector when they detect a buffer full condition, as this would significantly simplify the high-level API. But all usages must first be reviewed before this simplification can be done. For now it remains done by applet_put*() instead. |
||
---|---|---|
.. | ||
flags.c | ||
README | ||
show-fd-to-flags.sh |
This needs to be built from the top makefile, for example : make dev/flags/flags Then the executable is usable either one value at a time from the command line, either with values coming from stdin with "-" passed alone instead of the value. It is possible to restrict the decoding to certain fields only by specifying one of "ana", "chn", "conn", "cs", "si", "sierr", "strm", "task", or "txn" before the value.