]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: peers: don't count track-sc multiple times on errors
authorWilly Tarreau <w@1wt.eu>
Tue, 26 Jul 2016 13:22:33 +0000 (15:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 26 Jul 2016 13:25:32 +0000 (15:25 +0200)
commit3146a4cde2cff2d28f63402037b284946e75fa03
tree3503bf868b1ebd0f6b7345bc47eda4a7e6e4da9d
parent22fc3203db3cfab18674578e3245e203291aa53a
BUG/MINOR: peers: don't count track-sc multiple times on errors

Ruoshan Huang found that the call to session_inc_http_err_ctr() in the
recent http-response patch was not a good idea because it also increments
counters that are already tracked (eg: http-request track-sc or previous
http-response track-sc). Better open-code the update, it's simple.
src/proto_http.c