]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stream: always release the stream-interface on abort
authorWilly Tarreau <w@1wt.eu>
Fri, 24 Nov 2017 14:01:10 +0000 (15:01 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 24 Nov 2017 14:04:36 +0000 (15:04 +0100)
commit0542c8b39a3346ee653bb16a81ae5b974e4befba
tree509fa2d6a2a65a51c4dd63b38feeae8138754fb3
parentca6a957c5d9b55cfa026dd1813a1c9c46a5c2e1b
BUG/MEDIUM: stream: always release the stream-interface on abort

The cache exhibited a but in process_stream() where upon abort it is
possible to switch the stream-int's state to SI_ST_CLO without calling
si_release_endpoint(), resulting in a possibly missing ->release() for
the applet.

It should affect all other applets as well (eg: lua, spoe, peers) and
should carefully be backported to stable branches after some observation
period.
src/stream.c