ltm rule command ADAPT timeoutΒΆ

iRule(1)						BIG-IP TMSH Manual						  iRule(1)

ADAPT::timeout
       Sets or returns the timeout attribute.

SYNOPSIS
       ADAPT::timeout (ADAPT_CTX)? (ADAPT_SIDE)? (TIMEOUT_VALUE)?

DESCRIPTION
       The ADAPT::timeout command sets or returns the timeout attribute of the ADAPT filter on the current or specified side of
       the virtual server connection for which the iRule is being executed.  The timeout (in milliseconds) is how long ADAPT will
       wait for a result from the internal virtual server before deciding the service is down.

       Syntax

       ADAPT::timeout []

	   * Gets the timeout attribute for the current side

       ADAPT::timeout [] request

	   * Gets the timeout attribute for the request-adapt side

       ADAPT::timeout [] response

	   * Gets the timeout attribute for the response-adapt side

       ADAPT::timeout [] 

	   * Sets the timeout attribute for the current side

       ADAPT::timeout [] request 

	   * Sets the timeout attribute for the request-adapt side

       ADAPT::timeout [] response 

	   * Sets the timeout attribute for the response-adapt side

       The optional  argument applies the command to a specific context. Useful when there are dynamic contexts.  If
       "request" or "response" is specified, the context must be on the appropriate side (client or server, respectively).

RETURN VALUE
       Returns the current or modified timeout in milliseconds.

VALID DURING
       HTTP_REQUEST, HTTP_RESPONSE, HTTP_PROXY_REQUEST, ADAPT_REQUEST_RESULT, ADAPT_RESPONSE_RESULT

EXAMPLES
	when HTTP_RESPONSE {
	     if { [HTTP::header "Content-Type"] contains "image" } {
		ADAPT::select ivs-icap-image
		ADAPT::timeout 500
	     }
	     if { [HTTP::header "Content-Type"] contains "video" } {
		ADAPT::select ivs-icap-video
		ADAPT::timeout 2000
	     }
	 }

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-11.3.0 --First introduced the command (value was in seconds).  @BIGIP-11.4.0 --Value changed to be in millseconds.

BIG-IP							    2022-04-12							  iRule(1)