]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: xprt: add new xprt_set_idle and xprt_set_used methods
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Mar 2021 16:27:58 +0000 (17:27 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 5 Mar 2021 07:30:08 +0000 (08:30 +0100)
commit4f8cd4397f07389129dd23b07e94018404340731
treec0246cea2fc68b85398ca7f32a990459654a592d
parente388f2fbca40197590bd15dce0f4eb4d6cded20a
MINOR: xprt: add new xprt_set_idle and xprt_set_used methods

These functions are used on the mux layer to indicate that the connection
is becoming idle and that the xprt ought to be careful before checking the
context or that it's not idle anymore and that the context is safe. The
purpose is to allow a mux which is going to release a connection to tell
the xprt to be careful when touching it. At the moment, the xprt are
always careful and that's costly so we want to have the ability to relax
this a bit.

No xprt layer uses this yet.
include/haproxy/connection-t.h
include/haproxy/connection.h
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c