Forum Discussion
mario_112401
Nimbostratus
May 30, 2008HTTP response timeout
Hello, when an HTTP_REQ arrives, LTM should send the request to one server in the pool and wait for 1 sec for the server's answer: if TO expires, LTM should send a specific answer to the client and dr...
hoolio
Cirrostratus
May 30, 2008I don't think it's really possible to do exactly what you've described with an iRule. I can't think of a way to start a counter and then check to see if it's passed the timeout x number of seconds later. The check would have to be done in an event.
The closest that I can think of is to set a timer when the HTTP request headers are parsed in HTTP_REQUEST. You could then check the elapsed time in the HTTP_RESPONSE event (when LTM parses the server's response HTTP headers). If the response was received in less than 1 second you could allow the response to be sent back to the client. If the response comes in after 1 second you could drop the response when it's received and send back a different response to the client.
Out of curiosity, why do you need to set such a low timeout? Most HTTP clients can handle a longer wait than one second.
Aaron
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