From dca7917e3337bf4cb01695fc2726beb753dea984 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 6 Sep 2006 19:08:06 +0000 Subject: [PATCH] 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 --- varnish-cache/bin/varnishd/cache_center.c | 2 ++ varnish-cache/bin/varnishd/cache_pool.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5