r/haproxy • u/Practical-Ice-9464 • Jun 17 '25
Session Timeout
I have an issue where the haproxy server is timing out after 5 minutes even when I have the timeout queue,client and server all set to 35 minutes. The linux box itself has the net.ipv4.tcp.keepalive-time=1800, net.ipv4.tcp.keepalive-intrvl=60 and net.ipv4.tcp.keepalive-probes=9 but still server times out after 5 minutes. if I set the keep alive time to 240 then it stays up for ever. What I want is the connection to drop after 30 minutes of being idle. What am I missing here?
2
Upvotes
View all comments
Show parent comment
1
u/BarracudaDefiant4702 Jun 17 '25
My only thought is the http-keep-alive seems low. That should be how long it can idle between two different requests. When you say idle, where in the connection is it idling? Is it between requests, or is it a web socket that is timing out?
Also, what's your log entry look like that is terminating sooner than expected? That line gives the details (in a cryptic 4 letters along with timing numbers) as to exactly why it closed