]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: session: set the CO_FL_CONNECTED flag on the connection once ready
authorWilly Tarreau <w@1wt.eu>
Sat, 4 Apr 2015 23:04:01 +0000 (01:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Apr 2015 09:37:33 +0000 (11:37 +0200)
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

index 7f4e45e7098b524f17e09f21bc534a24ce8a1fb5..790f89aedf130d15d9ae0493b4bfe0c7d0929220 100644 (file)
@@ -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;