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.
This commit is contained in:
Willy Tarreau 2015-04-05 01:04:01 +02:00
parent 8baf906366
commit 18b95a4b27

View 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;