Forum Discussion
fabianlumy
Nimbostratus
Jan 31, 2013TCP 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. ...
Kevin_Stewart
Employee
Feb 04, 2013I'm not sure there is an HTTP timeout control, and what you're asking for isn't trivial.
Aside from that, I can think of potentially two options (albeit sub-optimal):
1. Force a "Connection: Close" header in HTTP responses. Probably not the best performance you'll get since you're not allowing any keep-alives at all, but you should be able to thwart the client's keep-alives.
2. A timer function in iRules. I would stress that this could be potentially dangerous, if not simply memory intensive, so please test vigorously if you choose something like the following:
when HTTP_RESPONSE {
if { not ( [info exists timer] ) } {
set timer [after 8000 { TCP::close }]
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects