Hi,
Thanks, here's the full config:
global
maxconn 256
stats socket ...
defaults
mode http
log global
option httplog
option dontlognull
option http-server-close
#option forwardfor except 127.0.0.0/8
option redispatch
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 10s
maxconn 128
listen stats 127....:...
mode http
stats enable
stats uri /
listen express 127....:...
cookie GEAR insert indirect nocache
option httpchk GET /
http-check expect rstatus 2..|3..|401
option httpclose
balance leastconn
server local-gear 127....:... check fall 2 rise 3 inter 2000 cookie
local-...
Thanks,
Mats
>
>
> Am 21.06.2017 um 07:59 schrieb Mats Eklund:
> >
> >
> > Hi,
> >
> >
> > I am running a load balanced Tomcat application on Openshift Online v2,
> > with HAProxy ver. 1.4.22 as load balancer.
> >
> >
> > I would like to have HTTP connections closed after each response is
> > returned. But am unable to make the response contain the corresponding
> > response headers (i.e. "Connection: close").
> >
> >
> > I have tried adding "option httpclose" in the HAProxy config file, but
> > still the response headers contains "Connection: keep-alive" and a
> > "Keep-Alive: timeout=15, max=100".
> >
> >
> > I have even tried "rspdel ^Connection:\ .*" but still the response contains
> > the above mentioned headers. (That I'm editing the right config file I have
> > verified by successfully adding a rspadd instruction).
> >
> >
> > Any advice is much appreciated!
> >
>
> We are gonna need the full configuration.
>
> Is this http/1.1 or http/1.0 on the front and backend?
> Confirm that you are running in http mode ("mode http") please.
>
>
> Regards,
> Lukas