r1687 - trunk/varnish-cache/bin/varnishd

phk at projects.linpro.no phk at projects.linpro.no
Fri Jul 13 09:58:11 CEST 2007


Author: phk
Date: 2007-07-13 09:58:11 +0200 (Fri, 13 Jul 2007)
New Revision: 1687

Modified:
   trunk/varnish-cache/bin/varnishd/cache_center.c
   trunk/varnish-cache/bin/varnishd/cache_response.c
Log:
Move setting of t_resp up to before we build the response.



Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c	2007-07-13 07:53:08 UTC (rev 1686)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c	2007-07-13 07:58:11 UTC (rev 1687)
@@ -146,6 +146,7 @@
 cnt_deliver(struct sess *sp)
 {
 
+	sp->t_resp = TIM_real();
 	RES_BuildHttp(sp);
 	VCL_deliver_method(sp);
 	if (sp->handling != VCL_RET_DELIVER) 

Modified: trunk/varnish-cache/bin/varnishd/cache_response.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_response.c	2007-07-13 07:53:08 UTC (rev 1686)
+++ trunk/varnish-cache/bin/varnishd/cache_response.c	2007-07-13 07:58:11 UTC (rev 1687)
@@ -147,7 +147,6 @@
 
 	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);




More information about the varnish-commit mailing list