]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: muxes: Make sure nobody stole the connection before using it.
authorOlivier Houchard <cognet@ci0.org>
Thu, 2 Jul 2020 09:58:05 +0000 (11:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 2 Jul 2020 12:17:25 +0000 (14:17 +0200)
commit48ce6a3ab181bf7b90376008d7fb077df57387c0
tree9bfdbc1eb25643697431512fbe901985e5bd58e5
parent54d31170a9a8bf126cb7d1783bbdb806f742cc0d
BUG/MEDIUM: muxes: Make sure nobody stole the connection before using it.

In the various timeout functions, make sure nobody stole the connection from
us before attempting to doing anything with it, there's a very small race
condition between the time we access the task context, and the time we
actually check it again with the lock, where it could have been free'd.
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c