From: phk Date: Wed, 6 Sep 2006 19:08:06 +0000 (+0000) Subject: Grab the r_recv timestamp at the right time. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dca7917e3337bf4cb01695fc2726beb753dea984;p=varnish Grab the r_recv timestamp at the right time. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@928 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index cbdc35d8..86064f94 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -589,6 +589,8 @@ cnt_recv(struct sess *sp) { int done; + clock_gettime(CLOCK_REALTIME, &sp->t_req); + AZ(sp->vcl); sp->vcl = VCL_Get(); diff --git a/varnish-cache/bin/varnishd/cache_pool.c b/varnish-cache/bin/varnishd/cache_pool.c index bfc2ed6d..26a336aa 100644 --- a/varnish-cache/bin/varnishd/cache_pool.c +++ b/varnish-cache/bin/varnishd/cache_pool.c @@ -215,8 +215,6 @@ WRK_QueueSession(struct sess *sp) struct worker *w; pthread_t tp; - clock_gettime(CLOCK_REALTIME, &sp->t_req); - sp->workreq.sess = sp; LOCK(&wrk_mtx);