]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: proto_htx: Switch to infinite forwarding if there is no data filter
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 8 Mar 2019 14:45:26 +0000 (15:45 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 19 Mar 2019 08:48:05 +0000 (09:48 +0100)
commitf52170d2f47efbace729bc88349eb189968df568
treeb482c7c58d5422614e61d93da8a1a21a3138d844
parent679bba13f782356a1e51cda14a407125ce087a41
MEDIUM: proto_htx: Switch to infinite forwarding if there is no data filter

Because in HTX the parsing is done by the multiplexers, there is no reason to
limit the amount of data fast-forwarded. Of course, it is only true when there
is no data filter registered on the corresponding channel. So now, we enable the
infinite forwarding when possible. However, the HTTP message state remains
HTTP_MSG_DATA. Then, when infinite forwarding is enabled, if the flag CF_SHUTR
is set, the state is switched to HTTP_MSG_DONE.
src/proto_htx.c