BUG/MEDIUM: stream: The stream doen't inherit SC from the session

During the processing of tcp-request connection, the stream doesn't exists, so the
stick counters are stored in the session. When the stream is created it must
inherit from the session sc.

This patch fix this behavior.

[WT: this is specific to 1.6, no backport needed]
This commit is contained in:
Thierry FOURNIER 2015-08-16 12:03:39 +02:00 committed by Willy Tarreau
parent 03d0e45dbb
commit c8fdb983c5

View File

@ -107,7 +107,7 @@ struct stream *stream_new(struct session *sess, struct task *t, enum obj_type *o
s->current_rule_list = NULL;
s->current_rule = NULL;
memset(s->stkctr, 0, sizeof(s->stkctr));
memcpy(s->stkctr, sess->stkctr, sizeof(s->stkctr));
s->sess = sess;
s->si[0].flags = SI_FL_NONE;