Hi -
I am looking for a way to drop a connection if a response has not been received from a back end server in 1000 milliseconds. I have an iRule that logges reponse time and would like to just modify to drop the connection if if the response time exceeds 1000 ms.
Any help would be appreciated.
Thanks
Current iRule:
when HTTP_REQUEST {
Get time for start of HTTP request
set http_request_time [clock clicks -milliseconds]
HTTP::collect 4096
Log the start of a new HTTP request
set LogString “[IP::client_addr] [HTTP::host] [HTTP::method] [HTTP::uri]”
log 192.168.50.17 local0.info “$LogString”
log local0.info “$LogString”
}
when HTTP_RESPONSE {
Received the response headers from the server. Log the pool name, IP and port, status and time delta
log 192.168.50.17 local0.info “$LogString [HTTP::status] pool_info: [LB::server] (ResponseTime: [expr [clock clicks -milliseconds] - $http_request_time] ms)”
log local0.info “$LogString [HTTP::status] pool_info: [LB::server] (ResponseTime: [expr [clock clicks -milliseconds] - $http_request_time]ms)”
}