Hi Everyone,

We are running HAProxy V1.5 as described in the subject. I am trying to
enable Keep-Alive and have noticed the response headers do not contain
the Connection:
Keep-Alive header.

Our haproxy.cfg contains the following defaults which I believe should
enable keep alive:

    mode http
    timeout connect 15000ms
    timeout client 50000ms
    timeout server 30000ms
    timeout http-keep-alive 10s
    option http-keep-alive

I notice if I get rid of option http-keep-alive then the Connection:
Close response
header is being returned. Can anyone tell me is HAProxy not returning the
Keep-Alive header as it's technically not requires in http 1.1 forward or
is it that HAProxy simply isn't enabling Keep-Alive.

If it is the latter can anyone tell me why it wouldn't be working?

A little more info from our config below

frontend server_Frontend

  mode http
  rspidel ^Server
  rspidel ^Date
  rspidel ^Vary
  rspidel ^Content-Type

  bind 0.0.0.0:443 ssl crt //home/ubuntu/certs/cert.pem

  default_backend server_Backend

backend server_Backend
mode http
balance roundrobin
server srv1 x.y.Z.1:80 maxconn 50 check

Thanks for any help.

Reply via email to