]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] also set request time on denied requests
authorwilly tarreau <willy@wtap.(none)>
Wed, 17 May 2006 23:25:36 +0000 (01:25 +0200)
committerwilly tarreau <willy@wtap.(none)>
Wed, 17 May 2006 23:25:36 +0000 (01:25 +0200)
haproxy.c

index aa8a5fb730e81225e0ec0399588d8358874340ee..254afc057bab53779aa442670a9c6d82a6f7bab8 100644 (file)
--- 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;