]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: cli: Notify cli applet won't consume data during request processing
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 1 Jun 2022 15:25:42 +0000 (17:25 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 13 Jun 2022 12:33:30 +0000 (14:33 +0200)
commit4167e050022dbd2564fa43ae39159cf3588c60ff
tree99d10584df1bcacf504491aa783ce54b9424cade
parent04f03e15c31ada85a79e7977676ed558681a6b99
BUG/MEDIUM: cli: Notify cli applet won't consume data during request processing

The CLI applet process one request after another. Thus, when several
requests are pipelined, it is important to notify it won't consume remaining
outgoing data while it is processing a request. Otherwise, the applet may be
woken up in loop. For instance, it may happen with the HTTP client while we
are waiting for the server response if a shutr is received.

This patch must be backported in all supported versions after an observation
period. But a massive refactoring was performed in 2.6. So, for the 2.5 and
below, the patch will have to be adapted. Note also that, AFAIK, the bug can
only be triggered by the HTTP client for now.
src/cli.c