]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: add a new flag CO_FL_FDLESS on fd-less connections
authorWilly Tarreau <w@1wt.eu>
Mon, 11 Apr 2022 15:26:56 +0000 (17:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Apr 2022 17:31:47 +0000 (19:31 +0200)
commitc78a9698ef82d49a08f71fcfbb5341fbb004119d
treeb18471cd3bdde6cdb558851c420bf76c304d05a8
parente4d09cedb60a3bc8ad92f9cb7d4448fb955a73ed
MINOR: connection: add a new flag CO_FL_FDLESS on fd-less connections

QUIC connections do not use a file descriptor, instead they use the
quic equivalent which is the quic_conn. A number of our historical
functions at the connection level continue to unconditionally touch
the file descriptor and this may have consequences once QUIC starts
to be used.

This patch adds a new flag on QUIC connections, CO_FL_FDLESS, to
mention that the connection doesn't have a file descriptor, hence the
FD-based API must never be used on them.

From now on it will be possible to intrument existing functions to
panic when this flag is present.
include/haproxy/connection-t.h
src/quic_sock.c