]> err.no Git - varnish/commitdiff
Move setting of t_resp up to before we build the response.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 13 Jul 2007 07:58:11 +0000 (07:58 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 13 Jul 2007 07:58:11 +0000 (07:58 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1687 d4fa192b-c00b-0410-8231-f00ffab90ce4

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

index 23f29815684f2611b0874ad9a2711612060f686e..1bc6b44600e3fa40d95c849120d788862a0cc688 100644 (file)
@@ -146,6 +146,7 @@ static int
 cnt_deliver(struct sess *sp)
 {
 
+       sp->t_resp = TIM_real();
        RES_BuildHttp(sp);
        VCL_deliver_method(sp);
        if (sp->handling != VCL_RET_DELIVER) 
index b2b7c8f8e1d92c9fcc54f99a93fd8732efe423a5..0a0b1ba13dc36fa4b5625f9946d720ab0af86193 100644 (file)
@@ -147,7 +147,6 @@ RES_WriteObj(struct sess *sp)
 
        CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
 
-       sp->t_resp = TIM_real();
        WRK_Reset(sp->wrk, &sp->fd);
        sp->wrk->acct.hdrbytes += http_Write(sp->wrk, sp->http, 1);
        CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);