From ce7eec91865655c7e325822621107e17b56cb2c8 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 5 Apr 2015 01:05:44 +0200 Subject: [PATCH] CLEANUP: stream.c: do not re-attach the connection to the stream This was a leftover from the initial code, it's not needed at all anymore. --- src/stream.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/stream.c b/src/stream.c index e0dc824a8..0d9a20206 100644 --- a/src/stream.c +++ b/src/stream.c @@ -103,18 +103,6 @@ int stream_accept_session(struct session *sess, struct task *t) s->logs.tv_accept = sess->tv_accept; /* corrected date for internal use */ s->uniq_id = global.req_count++; - /* Add the minimum callbacks to prepare the connection's control layer. - * We need this so that we can safely execute the ACLs used by the - * "tcp-request connection" ruleset. We also carefully attach the - * connection to the stream interface without initializing the rest, - * so that ACLs can use si[0]->end. - */ - si_attach_conn(&s->si[0], conn); - conn_attach(conn, s, &sess_conn_cb); - - /* OK let's complete stream initialization since there is no handshake */ - conn->flags |= CO_FL_CONNECTED; - /* OK, we're keeping the stream, so let's properly initialize the stream */ LIST_ADDQ(&streams, &s->list); LIST_INIT(&s->back_refs);