MINOR: stick-tables: Add functions to update some values of a tracked counter
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 6 Oct 2020 11:52:40 +0000 (13:52 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2020 13:41:49 +0000 (14:41 +0100)
commit84600631cdf179cea2958ec282a87b2fed310d3a
tree50b4fc5199a2914a5a384b959ef7d2343eae241a
parentdbe57794c4d0ef178b49ef2da2a2e968658c389f
MINOR: stick-tables: Add functions to update some values of a tracked counter

The cumulative numbers of http requests, http errors, bytes received and
sent and their respective rates for a tracked counters are now updated using
specific stream independent functions. These functions are used by the
stream but the aim is to allow the session to do so too. For now, there is
no reason to perform these updates from the session, except from the mux-h2
maybe. But, the mux-h1, on the frontend side, will be able to return some
errors to the client, before the stream creation. In this case, it will be
mandatory to update counters tracked at the session level.
include/haproxy/stick_table.h
include/haproxy/stream.h
src/stream.c