[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-commit
Subject:    r906 - trunk/varnish-cache/bin/varnishd
From:       phk () projects ! linpro ! no (phk at projects ! linpro ! no)
Date:       2006-08-23 11:42:16
Message-ID: 20060823114216.71D431EC977 () projects ! linpro ! no
[Download RAW message or body]

Author: phk
Date: 2006-08-23 13:42:16 +0200 (Wed, 23 Aug 2006)
New Revision: 906

Modified:
   trunk/varnish-cache/bin/varnishd/cache_response.c
Log:
Set response timestamp when we emit an error.


Modified: trunk/varnish-cache/bin/varnishd/cache_response.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_response.c	2006-08-23 11:27:54 UTC (rev 905)
+++ trunk/varnish-cache/bin/varnishd/cache_response.c	2006-08-23 11:42:16 UTC (rev 906)
@@ -70,6 +70,10 @@
 	struct http_msg *mp;
 	const char *msg;
 
+	CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
+
+	clock_gettime(CLOCK_REALTIME, &sp->t_resp);
+
 	msg = "Unknown error";
 	for (mp = http_msg; mp->nbr != 0 && mp->nbr <= code; mp++) 
 		if (mp->nbr == code) {



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic