]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[MINOR] proto_uxst: set accept_date upon accept() to the wall clock time
authorWilly Tarreau <w@1wt.eu>
Fri, 5 Mar 2010 15:18:37 +0000 (16:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 5 Mar 2010 16:56:31 +0000 (17:56 +0100)
This accept_date field was not set and will be reported in the stats as
the connection's accept date.

src/proto_uxst.c

index 7d38569bbfd767971ae3b576fae77cbc3fa3bbd6..980df43ea204a77fc6b33c2a179a5e24e0829d0c 100644 (file)
@@ -481,6 +481,7 @@ int uxst_event_accept(int fd) {
                memset(&s->logs, 0, sizeof(s->logs));
                memset(&s->txn, 0, sizeof(s->txn));
 
+               s->logs.accept_date = date; /* user-visible date for logging */
                s->logs.tv_accept = now;  /* corrected date for internal use */
 
                s->data_state = DATA_ST_INIT;