mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-08 10:11:40 +00:00
BUG/MINOR: peers: set the accept date in outgoing connections
Without this, "show sess" on the CLI reports a wrong age.
This commit is contained in:
parent
05bf5e1c36
commit
ae727bf9b4
@ -1181,11 +1181,14 @@ static struct session *peer_session_create(struct peer *peer, struct peer_sessio
|
|||||||
memset(s->stkctr, 0, sizeof(s->stkctr));
|
memset(s->stkctr, 0, sizeof(s->stkctr));
|
||||||
|
|
||||||
/* FIXME: the logs are horribly complicated now, because they are
|
/* FIXME: the logs are horribly complicated now, because they are
|
||||||
* defined in <p>, <p>, and later <be> and <be>.
|
* defined in <p>, <p>, and later <be> and <be>. We still initialize
|
||||||
|
* a few of them to help troubleshooting (eg: show sess shows them).
|
||||||
*/
|
*/
|
||||||
|
|
||||||
s->logs.logwait = 0;
|
s->logs.logwait = 0;
|
||||||
s->logs.level = 0;
|
s->logs.level = 0;
|
||||||
|
s->logs.accept_date = date; /* user-visible date for logging */
|
||||||
|
s->logs.tv_accept = now; /* corrected date for internal use */
|
||||||
s->do_log = NULL;
|
s->do_log = NULL;
|
||||||
|
|
||||||
/* default error reporting function, may be changed by analysers */
|
/* default error reporting function, may be changed by analysers */
|
||||||
|
Loading…
Reference in New Issue
Block a user