]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mux-h1: Correctly report Ti timer when HTX and keepalives are used
authorDave Pirotte <dpirotte@gmail.com>
Wed, 10 Jul 2019 13:57:38 +0000 (13:57 +0000)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 12 Jul 2019 14:14:12 +0000 (16:14 +0200)
commit234740f65d0a57c75570c68d3bc6a4513d473ff8
tree3733dbbd72b84a0400e8ccce66954c8194b13b68
parent37243bc61f9c5cf88d1fe96a016e5f2f7e5e0c60
BUG/MINOR: mux-h1: Correctly report Ti timer when HTX and keepalives are used

When HTTP keepalives are used in conjunction with HTX, the Ti timer
reports the elapsed time since the beginning of the connection instead
of the end of the previous request as stated in the documentation. Th,
Tq and Tt also report incorrectly as a result.

When creating a new h1s, check if it is the first request on the
connection. If not, set the session create times to the current
timestamp rather than the initial session accept timestamp. This makes
the logged timers behave as stated in the documentation.

This fix should be backported to 1.9 and 2.0.
src/mux_h1.c