]> git.kaiwu.me - haproxy.git/commit
[MEDIUM] stats: replace the stats socket analyser with an SI applet
authorWilly Tarreau <w@1wt.eu>
Tue, 22 Sep 2009 17:31:03 +0000 (19:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Sep 2009 21:52:17 +0000 (23:52 +0200)
commit9a42c0d771986913888dd2c3066dca059a850357
tree6c440dee924e4460024bbb2881bc17b8438bff36
parent56a560aef449d79bd18fef465f12630a0a049680
[MEDIUM] stats: replace the stats socket analyser with an SI applet

We can get rid of the stats analyser by moving all the stats code
to a stream interface applet. Above being cleaner, it provides new
advantages such as the ability to process requests and responses
from the same function and work only with simple state machines.
There's no need for any hijack hack anymore.

The direct advantage for the user are the interactive mode and the
ability to chain several commands delimited by a semi-colon. Now if
the user types "prompt", he gets a prompt from which he can send
as many requests as he wants. All outputs are terminated by a
blank line followed by a new prompt, so this can be used from
external tools too.

The code is not very clean, it needs some rework, but some part
of the dirty parts are due to the remnants of the hijack mode used
in the old functions we call.

The old AN_REQ_STATS_SOCK analyser flag is now unused and has been
removed.
doc/configuration.txt
include/proto/dumpstats.h
include/types/buffers.h
src/dumpstats.c
src/proto_uxst.c
src/session.c