]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: session: slightly simplify idle connection cleanup logic
authorWilly Tarreau <w@1wt.eu>
Fri, 15 Nov 2019 06:04:24 +0000 (07:04 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 Nov 2019 06:06:46 +0000 (07:06 +0100)
commit5de7817ae874901dfe44838dd26dd10c2d822c1d
tree1b950f6d63e2303ad97bfa15fd344608e54670d2
parenta132e5efa94c962144e78378403c566875a6d37e
CLEANUP: session: slightly simplify idle connection cleanup logic

Since previous commit a132e5efa9 ("BUG/MEDIUM: Make sure we leave the
session list in session_free().") it's pointless to delete the conn
element inside "if" blocks given that the second test is always true
as well. Let's simplify this with a single LIST_DEL_INIT() before the
test.
src/session.c