From: Willy Tarreau Date: Sat, 4 Apr 2015 23:04:01 +0000 (+0200) Subject: MINOR: session: set the CO_FL_CONNECTED flag on the connection once ready X-Git-Tag: v1.6-dev2~238 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=18b95a4b27b6d7deea76e7a414d3604a08703872;p=thirdparty%2Fhaproxy.git MINOR: session: set the CO_FL_CONNECTED flag on the connection once ready If we know there's no handshake, we must set the flag on the connection, it's not the job of the stream initializer to do it. --- diff --git a/src/session.c b/src/session.c index 7f4e45e709..790f89aedf 100644 --- a/src/session.c +++ b/src/session.c @@ -193,6 +193,8 @@ int session_accept_fd(struct listener *l, int cfd, struct sockaddr_storage *addr return 1; } + /* OK let's complete stream initialization since there is no handshake */ + cli_conn->flags |= CO_FL_CONNECTED; ret = stream_accept_session(sess, t); if (ret > 0) return ret;