mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-16 00:14:31 +00:00
BUG/MINOR: mux-h1: Don't report an error on EOS if no message was received
An error is reported if the EOS is detected before the end of the message. But we must be carefull to not report an error if there is no message at all. This patch must be backported to 1.9.
This commit is contained in:
parent
1b32790324
commit
269223886d
@ -1393,7 +1393,7 @@ static size_t h1_process_input(struct h1c *h1c, struct buffer *buf, int flags)
|
||||
|
||||
if ((h1s->cs->flags & CS_FL_REOS) && (!b_data(&h1c->ibuf) || htx_is_empty(htx))) {
|
||||
h1s->cs->flags |= CS_FL_EOS;
|
||||
if (h1m->state < H1_MSG_DONE)
|
||||
if (h1m->state > H1_MSG_LAST_LF && h1m->state < H1_MSG_DONE)
|
||||
h1s->cs->flags |= CS_FL_ERROR;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user