]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] stats: session rate limit gets garbaged in the stats
authorCyril Bonté <cyril.bonte@free.fr>
Fri, 23 Jul 2010 16:59:11 +0000 (18:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 Aug 2010 19:38:25 +0000 (21:38 +0200)
commit4d179ebd21b768bffee9cb28baa81a517dd7ac50
tree5b8225f998f6eb7abc8623111bc9dcd0694dc307
parent5c54c7146345d8886921ae8c324aa5ae8a797542
[BUG] stats: session rate limit gets garbaged in the stats

The statistics page (the HTML one) displays a garbage value on frontends using
"rate-limit session" in HTTP mode.

This is due to the usage of the same buffer for the macros converting the max
session rate and the limit.

Steps to reproduce :
Configuration file example  :
listen bug :80
  mode http
  rate-limit sessions
  stats enable

Then start refreshing the statistics page.

This bug was introduced just before the release of haproxy 1.4.0.

(was commit 6cfaf9e91969c87a9eab1d58a15d2d0a3f346c9b in 1.4)
src/dumpstats.c