]> err.no Git - varnish/commitdiff
Grab the r_recv timestamp at the right time.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 6 Sep 2006 19:08:06 +0000 (19:08 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Wed, 6 Sep 2006 19:08:06 +0000 (19:08 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@928 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_center.c
varnish-cache/bin/varnishd/cache_pool.c

index cbdc35d81a079de95bd02ade83e02d04db65e576..86064f947cd042f82e34e743bb95f9ba62f95419 100644 (file)
@@ -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();
 
index bfc2ed6d3199f20a687f2b78b9ddc9553a4c936a..26a336aa7826037538351af79519e3c033c55c9f 100644 (file)
@@ -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);