mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-22 13:46:52 +00:00
BUG/MINOR: compression: properly report compression stats in HTX mode
When HTX support was added to HTTP compression, a set of counters was missed, namely comp_in and comp_byp, resulting in no stats being available for compression. This must be backported to 1.9.
This commit is contained in:
parent
3d95717b58
commit
ef6fd85623
@ -285,9 +285,15 @@ comp_http_payload(struct stream *s, struct filter *filter, struct http_msg *msg,
|
||||
flt_update_offsets(filter, msg->chn, to_forward - consumed);
|
||||
|
||||
if (st->comp_ctx && st->comp_ctx->cur_lvl > 0) {
|
||||
update_freq_ctr(&global.comp_bps_in, consumed);
|
||||
HA_ATOMIC_ADD(&strm_fe(s)->fe_counters.comp_in, consumed);
|
||||
HA_ATOMIC_ADD(&s->be->be_counters.comp_in, consumed);
|
||||
update_freq_ctr(&global.comp_bps_out, to_forward);
|
||||
HA_ATOMIC_ADD(&strm_fe(s)->fe_counters.comp_out, to_forward);
|
||||
HA_ATOMIC_ADD(&s->be->be_counters.comp_out, to_forward);
|
||||
} else {
|
||||
HA_ATOMIC_ADD(&strm_fe(s)->fe_counters.comp_byp, consumed);
|
||||
HA_ATOMIC_ADD(&s->be->be_counters.comp_byp, consumed);
|
||||
}
|
||||
return to_forward;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user