mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-26 00:01:45 +02:00
MINOR: mux-h1: Set CS_FL_EOS when read0 is detected and no data are pending
In h1_process(), instead of setting CS_FL_REOS in this case, it is more accurate to set CS_FL_EOS.
This commit is contained in:
parent
2e754bff23
commit
5f50f5e606
@ -1699,7 +1699,7 @@ static int h1_process(struct h1c * h1c)
|
|||||||
if (h1c->flags & H1C_F_CS_ERROR || conn->flags & CO_FL_ERROR)
|
if (h1c->flags & H1C_F_CS_ERROR || conn->flags & CO_FL_ERROR)
|
||||||
flags |= CS_FL_ERROR;
|
flags |= CS_FL_ERROR;
|
||||||
if (conn_xprt_read0_pending(conn))
|
if (conn_xprt_read0_pending(conn))
|
||||||
flags |= CS_FL_REOS;
|
flags |= CS_FL_EOS;
|
||||||
h1s->cs->flags |= flags;
|
h1s->cs->flags |= flags;
|
||||||
h1s->cs->data_cb->wake(h1s->cs);
|
h1s->cs->data_cb->wake(h1s->cs);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user