Is there a way to configure HAProxy to maintain an X number of open HTTP connections to the backend that get reused by new HTTPS connections (i.e. requests) to the frontend, and keep the backend connections open even after the frontend connections are closed?

Thank you!

2 Answers 2


There is an http-reuse option http://cbonte.github.io/haproxy-dconv/1.7/configuration.html#4-http-reuse

This will make HAProxy send HTTP requests for a given HTTP session using already established connections of a different HTTP sessions. But it won't maintain any open connections if the there is no more frontend connections. I don't think that HAProxy can do it anyway.

  • it get closed as soon as clients close the connection
    – geeko
    Commented Jun 26, 2017 at 17:26

If I understand correctly you might be looking for connection pooling for backend server. This one have good examples.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .