]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: check: Reinit the buffer wait list at the end of a check
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 May 2022 12:24:43 +0000 (14:24 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 19 May 2022 08:12:38 +0000 (10:12 +0200)
commit6d781f612a8b4f536ddba0299fcf47c25d04346c
treeb52cb88da3cb670bebfeec85e563401783d27421
parentdfe32c7e15f1fd8d6df51b807cb2b825fd2f85a0
BUG/MINOR: check: Reinit the buffer wait list at the end of a check

The buffer wait list is used to deal with buffer allocation failure. But at
the end of health-check, it must be reinitialized. There is no reason to
reason to get a buffer between two health-check runs. And in fact, the
associated flags, CHK_ST_IN_ALLOC and CHK_ST_OUT_ALLOC, are already cleared
at the end of a health-check.

This patch must be backported as far as 2.2. On the 2.2, MT_LIST_ADDED and
MT_LIST_DEL must be used instead of LIST_INLIST and LIST_DEL_INIT.
src/check.c