]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] http: properly handle "option forceclose"
authorWilly Tarreau <w@1wt.eu>
Tue, 29 Dec 2009 11:09:05 +0000 (12:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Dec 2009 13:26:42 +0000 (14:26 +0100)
commit82eeaf2fae39ab7eeeac5d1f29e964bf0168c04f
treee20470215ff9bef39306af25b66d9ba5c8f0ae74
parent5523b32cc6f4887bf4dadaf80bfee84d4c7a3e35
[MEDIUM] http: properly handle "option forceclose"

The "forceclose" option used to close the output channel to the
server once it started to respond. While this happened to work with
most servers, some of them considered this as a connection abort and
immediately stopped responding.

Now that we're aware of the end of a request and response, we're able
to trivially handle this option and properly close both sides when the
server's response is complete.

During this change it appeared that forwarding could be allowed when
the BF_SHUTW_NOW flag was set on a buffer, which obviously is not
acceptable and was causing some trouble. This has been fixed too and
is the reason for the MEDIUM status on this patch.
doc/configuration.txt
src/proto_http.c
src/session.c