Commit 5c25ff31 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Only reference srcaddr on first request on session


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@526 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 65fb93ed
......@@ -516,7 +516,6 @@ cnt_recv(struct sess *sp)
sp->t0 = time(NULL);
sp->vcl = VCL_Get();
SES_RefSrcAddr(sp);
assert(sp->obj == NULL);
......
......@@ -37,9 +37,10 @@ wrk_do_one(struct worker *w)
TAILQ_REMOVE(&wrk_reqhead, wrq, list);
VSL_stats->n_wrk_queue--;
AZ(pthread_mutex_unlock(&wrk_mtx));
assert(wrq->sess != NULL);
wrq->sess->wrk = w;
CHECK_OBJ_NOTNULL(wrq->sess, SESS_MAGIC);
wrq->sess->wrk = w;
if (wrq->sess->srcaddr == NULL)
SES_RefSrcAddr(wrq->sess);
if (w->nobj != NULL)
CHECK_OBJ(w->nobj, OBJECT_MAGIC);
if (w->nobjhead != NULL)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment