mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-16 16:34:42 +00:00
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.
This commit is contained in:
parent
18b95a4b27
commit
ce7eec9186
12
src/stream.c
12
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);
|
||||
|
Loading…
Reference in New Issue
Block a user