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

index d8375bd9a11196b01a88c1cc0d775a6ea38ab2bf..aa8a5fb730e81225e0ec0399588d8358874340ee 100644 (file)
--- a/haproxy.c
+++ b/haproxy.c
@@ -4183,6 +4183,8 @@ int process_cli(struct session *t) {
                        }
 
                        t->cli_state = CL_STSHUTR;
+                       req->rlim = req->data + BUFSIZE; /* no more rewrite needed */
+                       t->logs.t_request = tv_diff(&t->logs.tv_accept, &now);
                        t->data_source = DATA_SRC_STATS;
                        produce_content(t);
                        return 1;