]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stats: show servers state may show an empty or incomplete result
authorCyril Bonté <cyril.bonte@free.fr>
Fri, 6 May 2016 10:18:48 +0000 (12:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 6 May 2016 10:28:43 +0000 (12:28 +0200)
commit76a99784f4ced2529e35469ccaa8e803ca397e86
tree4012061da08bdf632fb7faf62897cacf50e057e2
parent8bf242b7644d4bfcb35db7ac468e714b71b3be43
BUG/MEDIUM: stats: show servers state may show an empty or incomplete result

It was reported that the unix socket command "show servers state" returned an
empty response while "show servers state <backend>" worked.
In fact, both cases can reproduce the issue. It happens when the response can't
fit in one buffer.

The fix consists in processing the response in several steps, as it is done in
some others commands, by restarting where it was stopped after the buffer is
sent to the client.

This fix should be backported to haproxy 1.6
include/types/applet.h
src/dumpstats.c