BUG/MINOR: session: Fix tcp-request session failure if handshake.
authorEmeric Brun <ebrun@haproxy.com>
Mon, 5 Mar 2018 16:46:16 +0000 (17:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 6 Mar 2018 13:04:45 +0000 (14:04 +0100)
commit1738e86771cce2567483cde0ac23459be8e51ed8
tree565333213f78b8a4e3ff3ba01e14856a127c2d6f
parentb684e7a52cd3733bce2404bcac1b26ea92c7f38d
BUG/MINOR: session: Fix tcp-request session failure if handshake.

Some sample fetches check if session is established using
the flag CO_FL_CONNECTED. But in some cases, when a handshake
is performed this flag is set too late, after the process
of the tcp-request session rules.

This fix move the raising of the flag at the beginning of the
conn_complete_session function which processes the tcp-request
session rules.

This fix must be backported to 1.8 (and perhaps 1.7)
src/session.c