]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mworker/cli: command pipelining doesn't work anymore
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 25 Jun 2019 16:00:19 +0000 (18:00 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Tue, 25 Jun 2019 16:15:46 +0000 (18:15 +0200)
commit19338011368b787b18598aac00bd639657f22bfa
treebfb9a14555bd1eb9052f06d11eaea0e750c3e5e5
parent0ff28651c184f2b6cc7782b0960ed69cc907ca97
BUG/MEDIUM: mworker/cli: command pipelining doesn't work anymore

Since commit 829bd471 ("MEDIUM: stream: rearrange the events to remove
the loop"), the pipelining in the master CLI does not work anymore.

Indeed when doing:

  echo "@1 show info; @2 show info; @3 show info" | socat /tmp/haproxy.master -

the CLI will only show the response of the first command.

When debugging we can observe that the command is sent, but the client
closes the connection before receiving the response.

The problem is that the flag CF_READ_NULL is not cleared when we
reiniate the flags of the response and we rely on this flag to close.

Must be backported in 2.0
src/cli.c