mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-28 22:31:06 +01:00
MINOR: mux-h1: Update session idle duration when data are received
The session idle duration is set if not already done when data are received. For now, this value is still unused.
This commit is contained in:
parent
d517396f8e
commit
4e74155466
@ -2228,6 +2228,8 @@ static int h1_process(struct h1c * h1c)
|
|||||||
|
|
||||||
if (b_data(&h1c->ibuf) && h1s->csinfo.t_idle == -1)
|
if (b_data(&h1c->ibuf) && h1s->csinfo.t_idle == -1)
|
||||||
h1s->csinfo.t_idle = tv_ms_elapsed(&h1s->csinfo.tv_create, &now) - h1s->csinfo.t_handshake;
|
h1s->csinfo.t_idle = tv_ms_elapsed(&h1s->csinfo.tv_create, &now) - h1s->csinfo.t_handshake;
|
||||||
|
if (b_data(&h1c->ibuf) && h1s->sess->t_idle == -1)
|
||||||
|
h1s->sess->t_idle = tv_ms_elapsed(&h1s->sess->tv_accept, &now) - h1s->sess->t_handshake;
|
||||||
|
|
||||||
if (conn_xprt_read0_pending(conn)) {
|
if (conn_xprt_read0_pending(conn)) {
|
||||||
h1s->flags |= H1S_F_REOS;
|
h1s->flags |= H1S_F_REOS;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user