BUG/MINOR: stream/cli: report correct stream age in "show sess"
authorWilly Tarreau <w@1wt.eu>
Fri, 17 Nov 2023 17:51:26 +0000 (18:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 17 Nov 2023 17:59:12 +0000 (18:59 +0100)
commitec76e0138b418ccb57da45f00e97f4cf2dcc2582
tree7b04ff0b5532cb618d6690068b15ccfdd26f1098
parent662565ddb492c259cfdaa2d9489a23135a8e93c0
BUG/MINOR: stream/cli: report correct stream age in "show sess"

Since 2.4-dev2 with commit 15e525f49 ("MINOR: stream: Don't retrieve
anymore timing info from the mux csinfo"), we don't replace the
tv_accept (now accept_ts) anymore with the current request's, so that
it properly reflects the session's accept date and not the request's
date. However, since then we failed to update "show sess" to make use
of the request's timestamp instead of the session's timestamp, resulting
in fantasist values in the "age" field of "show sess" for the task.

Indeed, the session's age is displayed instead of the stream's, which
leads to great confusion when debugging, particularly when it comes to
multiplexed inter-proxy connections which are kept up forever.

Let's fix this now. This must be backported as far as 2.4. However,
for 2.7 and older, the field was named tv_request and was a timeval.
src/stream.c