From: willy tarreau Date: Wed, 17 May 2006 23:25:36 +0000 (+0200) Subject: [MINOR] also set request time on denied requests X-Git-Tag: v1.2.14~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47ee7ad0a49b66dd84c35259163a80ab29dde77f;p=thirdparty%2Fhaproxy.git [MINOR] also set request time on denied requests --- diff --git a/haproxy.c b/haproxy.c index aa8a5fb730..254afc057b 100644 --- a/haproxy.c +++ b/haproxy.c @@ -4120,6 +4120,7 @@ int process_cli(struct session *t) { if (t->flags & SN_CLDENY) { /* no need to go further */ t->logs.status = 403; + t->logs.t_request = tv_diff(&t->logs.tv_accept, &now); /* let's log the request time */ client_retnclose(t, t->proxy->errmsg.len403, t->proxy->errmsg.msg403); if (!(t->flags & SN_ERR_MASK)) t->flags |= SN_ERR_PRXCOND;