Mailing List Archive

r906 - trunk/varnish-cache/bin/varnishd
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) {