MINOR: connection: move session_list member in a union
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 3 May 2021 12:28:30 +0000 (14:28 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 5 May 2021 12:35:36 +0000 (14:35 +0200)
commit99cca08eccf5809fafb3a448dcf8f528333cc22a
tree9c73cffc0260f67212daaa17efb8715bbc32eccf
parent3109ccfe70c99ae29387f3a25f49eb83a9f05504
MINOR: connection: move session_list member in a union

Move the session_list attach point in an anonymous union. This member is
only used for backend connections. This commit is in preparation for the
support of stopping frontend idling connections which will add another
member to the union.

This change means that a special care must be taken to be sure that only
backend connections manipulate the session_list. A few BUG_ON has been
added as special guard to prevent from misuse.
include/haproxy/connection-t.h
include/haproxy/connection.h
include/haproxy/session.h