Re: Problem with chunked transfer encoding and short responses

2012-10-20 Thread Willy Tarreau
Hi Jaroslaw, first, thank you for this detailed report and the traces. On Fri, Oct 19, 2012 at 03:45:29PM +0200, Jaroslaw Bojar wrote: Hi, during evaluation of Haproxy for our internal loadbalancer we encountered following problem. What version was this ? Our backend sends very short

Re: Problem with chunked transfer encoding and short responses

2012-10-20 Thread Willy Tarreau
Hi Jaroslaw, thanks to the details you sent, I could reproduce the issue. In fact it's the MSG_MORE which is causing the delay and which should not be emitted at this point. The issue also existed in http-server-close mode if the server responded before the client finished to transfer a POST

Dump of invalid requests

2012-10-20 Thread Dmitry Sivachenko
Hello! I am using haproxy-1.4.22. Now I can see the last invalid request haproxy rejected with Bad Request return code with the following command: $ echo show errors | socat stdio unix-connect:/tmp/haproxy.stats 1) The request seems to be truncated at 16k boundary. With very large GET

Re: Dump of invalid requests

2012-10-20 Thread Willy Tarreau
Hello Dmitry, On Sat, Oct 20, 2012 at 10:13:47PM +0400, Dmitry Sivachenko wrote: Hello! I am using haproxy-1.4.22. Now I can see the last invalid request haproxy rejected with Bad Request return code with the following command: $ echo show errors | socat stdio

Re: Dump of invalid requests

2012-10-20 Thread Dmitry Sivachenko
On 10/20/12 11:49 PM, Willy Tarreau wrote: Hello Dmitry, On Sat, Oct 20, 2012 at 10:13:47PM +0400, Dmitry Sivachenko wrote: Hello! I am using haproxy-1.4.22. Now I can see the last invalid request haproxy rejected with Bad Request return code with the following command: $ echo show errors |

Re: Problem with chunked transfer encoding and short responses

2012-10-20 Thread Jaroslaw Bojar
Hi Willy, Thank you for quick and detailed reply. We were using versions 1.4.21 and 1.4.22. We will try the attached patch with dev version. By the way, haproxy is really great software! Best regards Jarek On 20 paź 2012, at 10:46, Willy Tarreau w...@1wt.eu wrote: Hi Jaroslaw, thanks to