Forum Discussion
TCP KeepAlive - Avoid long client connection without data
Hello,
I have virtual servers with type "Standard", TCP profile and HTTP profile. (BigIP LTM 1600, v 11.2.0)
The problem is that some users stay connected indefinitly using TCP keep alive.
For the TCP profile, the max idle time is set to 300sec, but the client reset the connection idle time sending a tcp keepalive...
- Is there a way to define a maximum duration for connection when no data is sent/received...?
- How can I show the creation date of all tcp connection ? (to identify long duration....)
Thanks!
21 Replies
- What_Lies_Bene1
Cirrostratus
Do you know how often the keepalive is sent? You could reduce the TCP profile Idle Timeout to below it's value? - What_Lies_Bene1
Cirrostratus
OK, so, how do we know when the last request has been sent? - Hamish
Cirrocumulus
If its http (with an http profile) you can separately set the max number of http requests and the max http idle time (which is separate from the tcp idle times). - fabianlumy
Nimbostratus
The BigIP should be able to know for a given connection context when the last http response has been sent ? And then with a timer, force a connection to close when timeout. - What_Lies_Bene1
Cirrostratus
Did you see Hamish's post above. I can't confirm the HTTP Idle Time setting as my VE is down but it sounds like what your looking for. - fabianlumy
Nimbostratus
@Hamish: I can define a "max-requests" to apply to my http profile, but how can I set a max idle time to http profile ...? - Kevin_Stewart
Employee
I'm not sure there is an HTTP timeout control, and what you're asking for isn't trivial.when HTTP_RESPONSE { if { not ( [info exists timer] ) } { set timer [after 8000 { TCP::close }] } }
- fabianlumy
Nimbostratus
@Kevin: Thanks for your suggestion,
- Kevin_Stewart
Employee
I think it's safe to say that since HTTP isn't a persistent protocol by nature, it isn't generally a problem for ~most web applications. So when you say "indefinite connections", are simply referring to HTTP keep-alives, or some other method of keeping the TCP session open? - fabianlumy
Nimbostratus
Actually I'm refering to keeping TCP session open.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com