From 18b95a4b27b6d7deea76e7a414d3604a08703872 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 5 Apr 2015 01:04:01 +0200 Subject: [PATCH] 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. --- src/session.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/session.c b/src/session.c index 7f4e45e70..790f89aed 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;