From: Willy Tarreau Date: Fri, 5 Mar 2010 15:18:37 +0000 (+0100) Subject: [MINOR] proto_uxst: set accept_date upon accept() to the wall clock time X-Git-Tag: v1.4.2~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bc775304565342aaba82507f5d485756956f1f48;p=thirdparty%2Fhaproxy.git [MINOR] proto_uxst: set accept_date upon accept() to the wall clock time This accept_date field was not set and will be reported in the stats as the connection's accept date. --- diff --git a/src/proto_uxst.c b/src/proto_uxst.c index 7d38569bbf..980df43ea2 100644 --- a/src/proto_uxst.c +++ b/src/proto_uxst.c @@ -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;