]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: http: disable server-side expiration until client has sent the body
authorWilly Tarreau <w@1wt.eu>
Wed, 7 May 2014 12:50:10 +0000 (14:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 7 May 2014 13:23:52 +0000 (15:23 +0200)
commit3bed5e9337fd6eeab0f0006ebefcbe98ee5c4f9f
treef66ef07b12b37a2e1a46009a4c4c325e07cc43af
parentb9edf8fbecc9d1b5c82794735adcc367a80a4ae2
BUG/MEDIUM: http: disable server-side expiration until client has sent the body

It's the final part of the 2 previous patches. We prevent the server from
timing out if we still have some data to pass to it. That way, even if the
server runs with a short timeout and the client with a large one, the server
side timeout will only start to count once the client sends everything. This
ensures we don't report a 504 before the server gets the whole request.

It is not certain whether the 1.4 state machine is fully compatible with
this change. Since the purpose is only to ensure that we never report a
server error before a client error if some data are missing from the client
and when the server-side timeout is smaller than or equal to the client's,
it's probably not worth attempting the backport.
src/proto_http.c