]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: cli: wait for payload data even without prompt
authorWilliam Lallemand <wlallemand@haproxy.com>
Tue, 11 Dec 2018 15:10:56 +0000 (16:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 Dec 2018 15:54:18 +0000 (16:54 +0100)
commit3de09d5c7ed4f107ddb97fbe9ec8604e654c34d6
tree447e5f6c72162d2c71574555ae4249bea589d72b
parent5f61068dbd393de83637a9d026c83378eedc0112
BUG/MINOR: cli: wait for payload data even without prompt

During a payload transfer, we need to wait for the data even when we are
not in interactive mode. Indeed, the data could be received line per
line progressively instead of in one recv.

Previously the CLI was doing a SHUTW just after the first line if it was
not in interactive mode. We now check if we are in payload mode to do
a SHUTW.

Should be backported in 1.8.
src/cli.c