]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MEDIUM] http: forward client's close when abortonclose is set
authorWilly Tarreau <w@1wt.eu>
Sat, 17 Jul 2010 06:02:58 +0000 (08:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 17 Aug 2010 19:37:51 +0000 (21:37 +0200)
commit5c54c7146345d8886921ae8c324aa5ae8a797542
tree88dbb24919bdd7f4a80e566097687c96bff74e6a
parent62a36c4288e4ed0bf4fd02b36d4d337209411a38
[MEDIUM] http: forward client's close when abortonclose is set

While it's usually desired to wait for a server response even
when the client closes its request channel, it can be problematic
with long polling requests. In order to let the server decide what
to do in such a case, if option abortonclose is set, we simply
forward the shutdown to the server. That way, it can decide to
take the appropriate action. Most servers will still process the
request, while some will probably want to abort.

Obviously, this only works as long as the client has not sent
another pipelined request over the same connection.

(was commit 0e25d86da49827ff6aa3c94132c01292b5ba4854 in 1.4)
src/proto_http.c