Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4832

How to retain Connection: keep-alive header in HAProxy 1.5

$
0
0

@leon wrote:

Hi all,

I have an application is sending a HTTP request to a machine behind a HAProxy vip but the response HAProxy is sending back appears to be missing some headers.
What the sending application is expecting is to see in the response is the “Connection: keep-alive” header, but via the HAProxy, this header is stripped out in the response.

I’ve been trying to write something that will add the header back in to the response if the back-end (receiving) server responds with a “Connection: keep-alive” header but it’s not working:

acl foo hdr(Connection) -m found
rspadd Connection:\ keep-alive if foo

Any ideas on how I can get this working?

Also, I cannot upgrade HAProxy at the moment as it’s actually in-built into an NSX edge…

Thanks!
Leon

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4832

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>