BUG/MINOR: httpclient: reinit flags in httpclient_start()
authorWilliam Lallemand <wlallemand@haproxy.org>
Thu, 17 Feb 2022 11:52:09 +0000 (12:52 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 17 Feb 2022 14:21:14 +0000 (15:21 +0100)
commit20dc35643a26d727de81999f4de4d114f088e8d1
treebc1c57a6b1e3ece022bce9eddd1101b8a4db5914
parentab18950a2c057c25c48b745c9dd39695ec4505ce
BUG/MINOR: httpclient: reinit flags in httpclient_start()

When starting for the 2nd time a request from the same httpclient *hc
context, the flags are not reinitialized and the httpclient will stop
after the first call to the IO handler, because the END flag is always
present.

This patch also add a test before httpclient_start() to ensure we don't
start a client already started.

Must be backported in 2.5.

(cherry picked from commit 5085bc3103e5a52f0d8909d13a6e36d24d2a6562)
Signed-off-by: William Lallemand <wlallemand@haproxy.org>
src/http_client.c