crockpotveggies
crockpotveggies

Reputation: 13300

HA Proxy closes TCP socket after 10min?

I just started experimenting with HA Proxy in front of my app for hot failovers. I noticed that it is closing a websocket after ~10min from opening the web client to the server.

How can I disable a timeout to keep the websocket open? I can confirm that both boxes are indeed up the entire time. Thanks.

Upvotes: 2

Views: 4004

Answers (1)

Willy Tarreau
Willy Tarreau

Reputation: 3424

You need to change "timeout server" and "timeout client" to fit your needs. You must never ever run without timeouts, because from time to time you'll have some users disconnect from the net, and these fantom connections will slowly accumulate until you have to restart haproxy, which makes no sense. Better use large timeouts (eg: one day).

Upvotes: 9

Related Questions