From: phk Date: Wed, 23 Aug 2006 11:42:16 +0000 (+0000) Subject: Set response timestamp when we emit an error. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8255bbe2314cf1aa5b140fdbf33c91a613f1d3d1;p=varnish Set response timestamp when we emit an error. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@906 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_response.c b/varnish-cache/bin/varnishd/cache_response.c index 01c4ff4c..73a70fec 100644 --- a/varnish-cache/bin/varnishd/cache_response.c +++ b/varnish-cache/bin/varnishd/cache_response.c @@ -70,6 +70,10 @@ RES_Error(struct sess *sp, int code, const char *expl) 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) {