]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: connection: Add a CTL flag to notify mux it should wait for reads again
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Nov 2023 06:44:05 +0000 (07:44 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 14 Nov 2023 10:01:51 +0000 (11:01 +0100)
MUX_SUBS_RECV ctl flag is added to instruct the mux it should wait for read
events. This flag will be pretty useful to handle abortonclose option.

include/haproxy/connection-t.h

index 3c06938832ca458c90f61b16f7bd22bee1349ab9..2029bf851b89ee035d72f40d64ddb6921351a330 100644 (file)
@@ -334,6 +334,7 @@ enum mux_ctl_type {
        MUX_STATUS, /* Expects an int as output, sets it to a combinaison of MUX_STATUS flags */
        MUX_EXIT_STATUS, /* Expects an int as output, sets the mux exist/error/http status, if known or 0 */
        MUX_REVERSE_CONN, /* Notify about an active reverse connection accepted. */
+       MUX_SUBS_RECV, /* Notify the mux it must wait for read events again  */
 };
 
 /* response for ctl MUX_STATUS */