Hi Kristjan, On Wed, Jul 31, 2013 at 10:27:29AM +0300, Kristjan Koppel wrote: > Hi Willy, > > > Thanks for the patch! I have now confirmed that it works fine for us.
Thanks for testing! I'll backport it into 1.4. > Besides the very welcome documentation update, don't you think that > currently HAProxy is handling the situation in a surprising way (returning > an empty response with status code 200)? > There are of course the "PD" termination flags on the log line, but I would > also expect some 5xx status code to be given to the client when an internal > error happens in HAProxy. No, this can't be ensured precisely because chunk sizes are advertised anywhere in the stream, and always after the headers. So you could very well pass a 1 MB chunk first, then have a 1 TB one which will be rejected. However, one of the interesting things with chunked encoding is that for a response to be valid, it MUST have the last empty chunk. So it is always enough to break the connection before the end to report an error, which is exactly what happened in your case. Best regards, Willy

