Tcp Connection Pooling

Hi Team,

we are using haproxy to balance pooled tcp connections as connection creation time with our backend servers are huge.

But after 5-6 mins of idle time we are getting empty response [not any exception related to connection or broken pipe] from haproxy.

our timeout configuration with backend is 20 hrs but still haproxy is breaking the connection between backend in 5-6 mins. ---------why this is happening even though our timeout is 20 hrs-------

same pooled connection is working fine for long hrs if we are using ping/health check on same connection but breaks if gets idle for more than 5 mins.

Please help


There is no connection pooling in TCP mode.

If you want to know why a connection closed, I suggest you enable logging and check the disconnect reason.