haproxy/include
Willy Tarreau 124d99181c [BUG] http: fix computation of message body length after forwarding has started
Till now, the forwarding code was making use of the hdr_content_len member
to hold the size of the last chunk parsed. As such, it was reset after being
scheduled for forwarding. The issue is that this entry was reset before the
data could be viewed by backend.c in order to parse a POST body, so the
"balance url_param check_post" did not work anymore.

In order to fix this, we need two things :
  - the chunk size (reset upon every forward)
  - the total body size (not reset)

hdr_content_len was thus replaced by the former (hence the size of the patch)
as it makes more sense to have it stored that way than the way around.

This patch should be backported to 1.4 with care, considering that it affects
the forwarding code.
2011-03-01 20:30:48 +01:00
..
common [CLEANUP] hash: move the avalanche hash code globally available 2010-11-29 07:28:16 +01:00
import [MAJOR] replace ultree with ebtree in wait-queues 2008-06-24 08:17:16 +02:00
proto [MINOR] stats: report HTTP message state and buffer flags in error dumps 2010-12-12 12:46:33 +01:00
types [BUG] http: fix computation of message body length after forwarding has started 2011-03-01 20:30:48 +01:00