]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stats: don't count tarpitted connections twice
authorWilly Tarreau <w@1wt.eu>
Sat, 16 Nov 2013 09:06:44 +0000 (10:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 16 Nov 2013 09:06:44 +0000 (10:06 +0100)
commit8ac72496113dca34f5a49c6ac9a2cc80f5612f69
tree0506b1f6826722b4cd654688736a52347a7cee31
parent38d5892634a2101285653e90fc59e2fb6484a9f0
BUG/MINOR: stats: don't count tarpitted connections twice

When a connection is tarpitted, a denied req is counted once when the
action is applied, and then a failed req is counted when the tarpit
timeout expires. This is completely wrong as the tarpit is exactly
equivalent to a deny since it's a disguised deny.

So let's not increment the failed req anymore.

This fix may be backported to 1.4 which has the same issue.
src/proto_http.c