]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MAJOR] make unix sockets work again with stats
authorWilly Tarreau <w@1wt.eu>
Sun, 7 Dec 2008 15:06:43 +0000 (16:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 7 Dec 2008 15:06:43 +0000 (16:06 +0100)
commitb1356cf4e47ec06b086d01547aa6eac7de185d9b
treeb87a8735f7a2fb51d9e4e7475cca9d83ffce3271
parentff8d42ea686f33743be274c7e4e78973bba72cc5
[MAJOR] make unix sockets work again with stats

The unix protocol handler had not been updated during the last
stream_sock changes. This has been done now. There is still a
lot of duplicated code between session.c and proto_uxst.c due
to the way the session is handled. Session.c relies on the existence
of a frontend while it does not exist here.

It is easier to see the difference between the stats part (placed
in dumpstats.c) and the unix-stream part (in proto_uxst.c).

The hijacking function still needs to be dynamically set into the
response buffer, and some cleanup is still required, then all those
changes should be forward-ported to the HTTP part. Adding support
for new keywords should not cause trouble now.
include/proto/dumpstats.h
include/proto/proto_uxst.h
src/dumpstats.c
src/proto_uxst.c