]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http: Call stream_inc_be_http_req_ctr() only one time per request
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 29 Apr 2019 11:12:02 +0000 (13:12 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 29 Apr 2019 14:01:47 +0000 (16:01 +0200)
commit1907ccc2f75b78ace1ee4acdfc60d48a76e3decd
tree19d2ee7856fc4f328678aa1b3e57c1219260d22d
parent97215ca284fa7127f20248f00919a0d6df5b8819
BUG/MINOR: http: Call stream_inc_be_http_req_ctr() only one time per request

The function stream_inc_be_http_req_ctr() is called at the beginning of the
analysers AN_REQ_HTTP_PROCESS_FE/BE. It as an effect only on the backend. But we
must be careful to call it only once. If the processing of HTTP rules is
interrupted in the middle, when the analyser is resumed, we must not call it
again. Otherwise, the tracked counters of the backend are incremented several
times.

This bug was reported in github. See issue #74.

This fix should be backported as far as 1.6.
src/proto_http.c
src/proto_htx.c