]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: stream-int: Don't wait to send truncated HTTP messages
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 25 Jun 2020 14:11:20 +0000 (16:11 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 25 Jun 2020 19:50:20 +0000 (21:50 +0200)
commit42b77b0ba64cd2f8b1b90b4ca4ac764c1de9f58c
tree29532c2130536fed5df5b157662b61871467cf3a
parent40e6b550ce35ff164f71799d8378c4e2350d3640
BUG/MINOR: stream-int: Don't wait to send truncated HTTP messages

In HTX, since the commit 8945bb6c0 ("BUG/MEDIUM: stream-int: fix loss of
CO_SFL_MSG_MORE flag in forwarding"), the CO_SFL_MSG_MORE flag is set on the
transport layer if the end of the HTTP message is not reached, to delay the data
forwarding. To do so, the CF_EOI flag is tested and must not be set on the
output channel.

But the CO_SFL_MSG_MORE flag is also added if the message was truncated. Only
CF_SHUTR is set if this case. So the forwarding may be delayed to wait more data
that will never come. So, in HTX, the CO_SFL_MSG_MORE flag must not be set if
the message is finished (full or truncated).

No backport is needed.
src/stream_interface.c