]> git.kaiwu.me - haproxy.git/commit
MINOR: stream-int: introduce new SI_FL_RXBLK flags
authorWilly Tarreau <w@1wt.eu>
Wed, 14 Nov 2018 10:24:08 +0000 (11:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 20:41:45 +0000 (21:41 +0100)
commit94f7907d65d228d8cc148183909cc4b8c746fc20
tree99521c96447b09631973bfba8a153a3874fa66dd
parentd0f5bbcd6499fcc59e693b696e055afbcb307970
MINOR: stream-int: introduce new SI_FL_RXBLK flags

The plan is to have the following flags to describe why a stream interface
doesn't produce data :

    - SI_FL_RXBLK_CHAN : the channel doesn't want it to receive
    - SI_FL_RXBLK_BUFF : waiting for a buffer allocation to complete
    - SI_FL_RXBLK_ROOM : more room is required in the channel to receive
    - SI_FL_RXBLK_SHUT : input now closed, nothing new will come
    - SI_FL_RX_WAIT_EP : waiting for the endpoint to produce more data

Applets like the CLI which consume complete commands at once and produce
large chunks of responses will for example be able to stop being woken up
by clearing SI_FL_WANT_GET and setting SI_FL_RXBLK_ROOM when the rx buffer
is full. Once called they will unblock WANT_GET. The flags were moved
together in readable form with the Rx bits using 2 hex digits and still
have some room to do a similar operation on the Tx path later, with the
WAIT_EP flag being represented alone on a digit.
contrib/debug/flags.c
include/types/stream_interface.h