Does HAProxy support a pool of connections (tcp /http) from client side ?
Not sure why you would ask for “pooling” on the client side, that is the browsers job.
Does Haproxy support keep-alive on the frontend: yes (so browsers can pool if they want).
Does Haproxy support pooling on the backend side: yes, in 1.6, check http-reuse .
This applies to HTTP mode, obviously this is not supported for TCP.
Thanks for the clear answer.
Sorry if my question was not clear, I mean HAProxy as client ===>(http) ===> backend servers.
so, check http-reuse will work
I have more details regarding the clients and servers behavior.
The clients are applications which will send HTTP requests to HAPROXY (not
HAPROXY will send the requests to the backend servers over HTTPS (using
Does HAPROXY support 2-way SSL as client and as server? Where can I find
the required configuration?
Can HAPROXY (as a client) initiate pool of HTTPS connections to the
backend servers, regardless of the HTTP Clients connections?
The initiative is to improve the performance by reducing the 2-way SSL
Thanks a lot
I’m not sure what you mean by “2-way SSL”. Do you mean client certificate authentication?
You can find the required configuration in the configuration manual, the ssl keyword on the server line being the first step:
http-reuse works just as well with SSL backends:
I would like to emphasis my question related “connection pool”.
As far as I understand using http-reuse will work as long as front-end
didn’t close the connection after getting response.
in our case , the front-end will close the connection immediately after
getting the response so http-reuse will not help here.
maybe i got wrong in my understanding of http-reuse, so please elaborate.
The question is if HAPROXY can maintain connection towards the back-end
servers regardless of front-end behavior.
You right, its not actually a connection pool, it is connection re-use.
However as the SSL sessions are resumed, not renegotiated, you are not paying the large “CPU tax” for continuous handshakes.
No, it cannot.
Following our conversation, would you consider adding the ability of
maintaining an independent connection pool towards the back-end servers
regardless of the front-end clients connections in HAProxy next release?
I suggest we move this conversation to the mailing list, its more appropriate there.
You can just send your request to (no need to subscribe):
Do explain your use-case and why the current implementation does not work for it when you send this to the mailing list.