]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: cli: Don't close when SE_FL_ERR_PENDING is set in cli analyzer
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Apr 2023 05:49:45 +0000 (07:49 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 14 Apr 2023 14:49:04 +0000 (16:49 +0200)
commitd3bc340e7ef4e47b10d04c30c794fb690e83a4d2
tree83ba45e6627222d4689903dd85014101d6717e85
parent214f1b5c16a691a428614ed103535e719a7d384e
BUG/MINOR: cli: Don't close when SE_FL_ERR_PENDING is set in cli analyzer

SE_FL_ERR_PENDING is used to report an error on the write side. But it is
not a terminal error. Some incoming data may still be available. In the cli
analyzers, it is important to not close the stream when this flag is
set. Otherwise the response to a command can be truncated. It is probably
hard to observe. But it remains a bug.

While this patch could be backported to 2.7, there is no real reason to do
so, except if someone reports a bug about truncated responses.
src/cli.c