mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
MINOR: mux-h1: Reset session dates and durations info when the CS is detached
These info are reset for the next transaction, if the connection is kept alive. From the stream point of view, it should be the same a new connection, except there is no handshake. Thus the handshake duration is set to 0.
This commit is contained in:
parent
4e74155466
commit
42849b047a
@ -2474,6 +2474,11 @@ static void h1_detach(struct conn_stream *cs)
|
||||
h1c = h1s->h1c;
|
||||
h1s->cs = NULL;
|
||||
|
||||
sess->accept_date = date;
|
||||
sess->tv_accept = now;
|
||||
sess->t_handshake = 0;
|
||||
sess->t_idle = -1;
|
||||
|
||||
is_not_first = h1s->flags & H1S_F_NOT_FIRST;
|
||||
h1s_destroy(h1s);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user