From: phk Date: Fri, 13 Jul 2007 07:58:11 +0000 (+0000) Subject: Move setting of t_resp up to before we build the response. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15ff79c74b229cb5583fb96168e61dc64791a765;p=varnish Move setting of t_resp up to before we build the response. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1687 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index 23f29815..1bc6b446 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -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) diff --git a/varnish-cache/bin/varnishd/cache_response.c b/varnish-cache/bin/varnishd/cache_response.c index b2b7c8f8..0a0b1ba1 100644 --- a/varnish-cache/bin/varnishd/cache_response.c +++ b/varnish-cache/bin/varnishd/cache_response.c @@ -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);