]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: htx/http-ana: No longer close connection on early HAProxy response
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 26 Feb 2024 07:36:58 +0000 (08:36 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 28 Feb 2024 15:02:33 +0000 (16:02 +0100)
commit60fcc275779fb2ac76f93a14be1c69e60cd17a98
tree765466b2558b43ad8d20b4e96ae7bfe9c69c30a9
parent077906da140a35873bf451d7e9f67646c9f37c81
MEDIUM: htx/http-ana: No longer close connection on early HAProxy response

When a response was returned by HAProxy, a dedicated HTX flag was
set. Thanks to this flag, it was possible to add a "connection: close"
header to the response if the request was not fully received and to close
the connection. In the same way, when a redirect rule was applied,
keep-alive was forcefully disabled for unfinished requests.

All these mechanisms are now useless because the H1 mux is able to drain the
response. So HTX_FL_PROXY_RESP flag is removed and no special processing is
performed on HAProxy response when the request is unfinished.
include/haproxy/htx-t.h
src/http_ana.c
src/http_fetch.c
src/mux_h1.c