[MINOR] stats: use a dedicated state to output static data
authorWilly Tarreau <w@1wt.eu>
Sun, 11 Oct 2009 21:12:51 +0000 (23:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 11 Oct 2009 21:12:51 +0000 (23:12 +0200)
commitea1f5fe28a4ff0645f256527f43f45e8c52c4af6
tree04db78b94ed75dea6a7524ac48127c8b7426191b
parentcfeaa476c640397f7c93034959142480bb292127
[MINOR] stats: use a dedicated state to output static data

It is a bit expensive and complex to use to call buffer_feed()
directly from the request parser, and there are risks that some
output messages are lost in case of buffer full. Since most of
these messages are static, let's have a state dedicated to print
these messages and store them in a specific area shared with the
stats in the session. This both reduces code size and risks of
losing output data.
include/proto/dumpstats.h
include/types/session.h
src/dumpstats.c