MINOR: session: Add the idle duration field into the session
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 30 Sep 2020 08:28:02 +0000 (10:28 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2020 13:41:48 +0000 (14:41 +0100)
commitd517396f8e8dcaa169b69973cff6d22abfa14616
tree438389c23250535026da81d1e13b04cd9bde0cab
parent268c92e2f8454569c1d2354f22cbe3187d548c3c
MINOR: session: Add the idle duration field into the session

The idle duration between two streams is added to the session structure. It
is not necessarily pertinent on all protocols. In fact, it is only defined
for H1 connections. It is the duration between two H1 transactions. But the
.get_cs_info() callback function on the multiplexers only exists because
this duration is missing at the session level. So it is a simplification
opportunity for a really low cost.

To reduce the cost, a hole in the session structure is filled by moving
.srv_list field at the end of the structure.
include/haproxy/session-t.h
src/session.c