MEDIUM: http: add the track-sc* actions to http-request rules
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Jun 2014 16:12:15 +0000 (18:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Jul 2014 15:26:40 +0000 (17:26 +0200)
commit09448f7d7cf5aaa1f4982c5d4e5935b59c046430
tree8e1573779221a4dbbba2af8424c6d2c508b7cf32
parent5ed1bbfc75a70e0c4d4ed544c3c23e91b5a19edf
MEDIUM: http: add the track-sc* actions to http-request rules

Add support for http-request track-sc, similar to what is done in
tcp-request for backends. A new act_prm field was added to HTTP
request rules to store the track params (table, counter). Just
like for TCP rules, the table is resolved while checking for
config validity. The code was mostly copied from the TCP code
with the exception that here we also count the HTTP request count
and rate by hand. Probably that something could be factored out in
the future.

It seems like tracking flags should be improved to mark each hook
which tracks a key so that we can have some check points where to
increase counters of the past if not done yet, a bit like is done
for TRACK_BACKEND.
doc/configuration.txt
include/proto/proto_http.h
include/types/proto_http.h
src/cfgparse.c
src/proto_http.c