]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: streams: Don't use CF_EOI to decide if the request is complete.
authorOlivier Houchard <ohouchard@haproxy.com>
Fri, 17 May 2019 13:38:29 +0000 (15:38 +0200)
committerOlivier Houchard <cognet@ci0.org>
Fri, 17 May 2019 13:49:21 +0000 (15:49 +0200)
commitce1a0292bf718bd963af4fec1bc9cc6fba432d51
tree91ee88f42a9bee141d991229cf3c7f4bb704b4f4
parent4e2b646d60298f6b93d604911fcfffb1eab6e3d8
BUG/MEDIUM: streams: Don't use CF_EOI to decide if the request is complete.

In si_cs_send(), don't check CF_EOI on the request channel to decide if the
request is complete and if we should save the buffer to eventually attempt
L7 retries. The flag may not be set yet, and it may too be set to early,
before we're done modifying the buffer. Instead, get the msg, and make sure
its state is HTTP_MSG_DONE.
That way we will store the request buffer when sending it even in H2.
src/stream_interface.c