]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mcli: Properly handle errors and timeouts during reponse processing
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 7 Mar 2022 17:20:21 +0000 (18:20 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Mar 2022 17:31:44 +0000 (18:31 +0100)
commite8cefacfa9dc8c7893d773acb4769de73f8323d2
treeb6f863547a2b93ef1cb0948c6bfde76b55319f42
parent8b1eed16d0f63227a0026f4253c12c1cf68f2f0c
BUG/MEDIUM: mcli: Properly handle errors and timeouts during reponse processing

The response analyzer of the master CLI only handles read errors. So if
there is a write error, the session remains stuck because some outgoing data
are blocked in the channel and the response analyzer waits everything to be
sent. Because the maxconn is set to 10 for the master CLI, it may be
unresponsive if this happens to many times.

Now read and write errors, timeouts and client aborts are handled.

This patch should solve the issue #1512. It must be backported as far as
2.0.
src/cli.c