]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http: no need to close the request on redirect if data was parsed
authorWilly Tarreau <w@1wt.eu>
Thu, 28 May 2015 15:23:54 +0000 (17:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 28 May 2015 15:45:43 +0000 (17:45 +0200)
commit2de8a50918b9d66da74d27395adf5f9a0260a257
tree20250f09956818c99587a812336b33b47763c820
parent51d861a44f4c872184d1f7dcc8ef1e1b4793c982
MEDIUM: http: no need to close the request on redirect if data was parsed

There are two reasons for not keeping the client connection alive upon a
redirect :
  - save the client from uploading all data
  - avoid keeping a connection alive if the redirect goes to another domain

The first case should consider an exception when all the data from the
client have been read already. This specifically happens on response
redirects after a POST to a server. This is an easy situation to detect.

It could later be improved to cover the cases where option
http-buffer-request is used.
src/proto_http.c