]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: ssl: implement xprt_set_used and xprt_set_idle to relax context checks
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Mar 2021 16:29:56 +0000 (17:29 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 5 Mar 2021 07:30:08 +0000 (08:30 +0100)
commit4149168255b1dc252aece0e5bbab6f55310f1ad5
tree8216310ee100ca6e597544f560d5fdddea5dd406
parent4f8cd4397f07389129dd23b07e94018404340731
MEDIUM: ssl: implement xprt_set_used and xprt_set_idle to relax context checks

Currently the SSL layer checks the validity of its tasklet's context just
in case it would have been stolen, had the connection been idle. Now it
will be able to be notified by the mux when this situation happens so as
not to have to grab the idle connection lock on each pass. This reuses the
TASK_F_USR1 flag just as the muxes do.
src/ssl_sock.c