MINOR: protocol: add a pair of check_events/ignore_events functions at the ctrl layer
authorWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 16:02:50 +0000 (17:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 16:02:50 +0000 (17:02 +0100)
commit472125bc042482afbd70e754f730a5bcb937d7ff
tree9e8937d936afc5cf0e76a220eb3d0e51a40382af
parent2ded48dd27c2c57128921ae94d0b2a68162719e8
MINOR: protocol: add a pair of check_events/ignore_events functions at the ctrl layer

Right now the connection subscribe/unsubscribe code needs to manipulate
FDs, which is not compatible with QUIC. In practice what we need there
is to be able to either subscribe or wake up depending on readiness at
the moment of subscription.

This commit introduces two new functions at the control layer, which are
provided by the socket code, to check for FD readiness or subscribe to it
at the control layer. For now it's not used.
include/haproxy/protocol-t.h
include/haproxy/sock.h
src/proto_sockpair.c
src/proto_tcp.c
src/proto_uxst.c
src/sock.c