BUG/MINOR: mux-h1: Be sure to update the count before adding EOM after trailers

Otherwise, an EOM may be added in a full buffer.

This patch must be backported to 2.0.
This commit is contained in:
Christopher Faulet 2019-09-03 21:55:14 +02:00
parent 6b32192cfb
commit f1ef7f641d

View File

@ -1476,7 +1476,7 @@ static size_t h1_process_input(struct h1c *h1c, struct buffer *buf, size_t count
if (!ret)
break;
}
if (!h1_process_eom(h1s, h1m, htx, count))
else if (!h1_process_eom(h1s, h1m, htx, count))
break;
}
else if (h1m->state == H1_MSG_DONE) {