Re: Gzip compression and transfer: chunked

2017-02-06 Thread Kristjan Koppel
Hi! This patch fixes my issue as well. Thank you very much! -- Kristjan On Mon, 06 Feb 2017 11:36:23 +0200 Christopher Faulet christopher.fau...@capflam.org wrote Hi guys, Could you check if the attached patch fixes your bug please ? If I'm right, the bug is

Re: Gzip compression and transfer: chunked

2017-02-06 Thread Brian Loss
It seems to do the trick for my issue. Thanks! On Mon, Feb 6, 2017 at 4:37 AM Christopher Faulet < christopher.fau...@capflam.org> wrote: > Hi guys, > > Could you check if the attached patch fixes your bug please ? > > If I'm right, the bug is about a premature close of the server > connection

Re: Gzip compression and transfer: chunked

2017-02-06 Thread Christopher Faulet
Hi guys, Could you check if the attached patch fixes your bug please ? If I'm right, the bug is about a premature close of the server connection when the content length cannot be determined (neither "Content-Length" nor "Transfer-encoding" headers) if a filter is used (here, the

Re: Gzip compression and transfer: chunked

2017-02-03 Thread Christopher Faulet
Le 03/02/2017 à 14:36, Kristjan Koppel a écrit : Hi! I seem to have run into the same (or at least similar) problem as reported by Vladimir Mihailenco a little while ago. I'm running HAProxy v1.7.2 and my backend server is etcd v2.3.7. The client application is using HTTP/1.0 and I have

Re: Gzip compression and transfer: chunked

2017-02-03 Thread Brian Loss
I too am seeing something similar with HAProxy 1.7.2. My test configuration is: global maxconn 5 defaults mode http option http-server-close compression algo gzip timeout connect 30s timeout client 1m timeout server 1m listen fe bind :80 server primary

Re: Gzip compression and transfer: chunked

2017-02-03 Thread Kristjan Koppel
Hi! I seem to have run into the same (or at least similar) problem as reported by Vladimir Mihailenco a little while ago. I'm running HAProxy v1.7.2 and my backend server is etcd v2.3.7. The client application is using HTTP/1.0 and I have compression enabled in HAProxy. With this

Re: Gzip compression and transfer: chunked

2017-01-31 Thread Christopher Faulet
Hi Vladimir, Sorry for my late reply, I was pretty busy these last days. I investigated a little on your problem. I've done some tests and carefully read the code. Everything seems to work as expected. I was not able to reproduce what you experienced with HAProxy 1.7.2. First, in HAProxy,

Re: Gzip compression and transfer: chunked

2017-01-26 Thread Vladimir Mihailenco
>Just to be sure, here there is a typo error. You meant "HTML is compressed", right ? No, it was not compressed with Haproxy 1.6. AFAIK compression is automatically disabled for chunked responses in Haproxy <1.7 -

Re: Gzip compression and transfer: chunked

2017-01-25 Thread Christopher Faulet
Le 24/01/2017 à 10:55, Vladimir Mihailenco a écrit : This is the config - https://gist.github.com/vmihailenco/9010ad37f5aeb800095a6b18909ae7d5. Backends don't have any options. I already tried to remove `http-reuse safe`, but it does not make any difference. Haproxy 1.7 with compression (HTML

Re: Gzip compression and transfer: chunked

2017-01-24 Thread Vladimir Mihailenco
This is the config - https://gist.github.com/vmihailenco/9010ad37f5aeb800095a6b18909ae7d5. Backends don't have any options. I already tried to remove `http-reuse safe`, but it does not make any difference. Haproxy 1.7 with compression (HTML not fully loaded) -

Re: Gzip compression and transfer: chunked

2017-01-23 Thread Christopher Faulet
Le 23/01/2017 à 11:54, Vladimir Mihailenco a écrit : Hi, I am using haproxy as load balancer/reverse proxy for Rails/Go application. I am upgrading from working Haproxy 1.6 config to 1.7.2. And it looks like I need to change my existing config, because Haproxy 1.7 truncates responses from

Gzip compression and transfer: chunked

2017-01-23 Thread Vladimir Mihailenco
Hi, I am using haproxy as load balancer/reverse proxy for Rails/Go application. I am upgrading from working Haproxy 1.6 config to 1.7.2. And it looks like I need to change my existing config, because Haproxy 1.7 truncates responses from Rails/Rack application. With Haproxy 1.6 and enabled