ltm rule command TCP closeΒΆ

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



TCP::close
       Closes the TCP connection.

SYNOPSIS
       TCP::close

DESCRIPTION
       Sends the FIN byte to gracefully close the connection.

       Syntax

       TCP::close

	    * Closes the TCP connection. Specifically, a segment is generated
	      with the FIN bit set.
	    * After the connection is closed, the system table connection entry
	      is removed.

RETURN VALUE
       None.

VALID DURING
       CLIENT_ACCEPTED, CLIENT_CLOSED, CLIENT_DATA, SERVER_CLOSED,
       SERVER_CONNECTED, SERVER_DATA, SIP_REQUEST, SIP_REQUEST_SEND,
       SIP_RESPONSE, STREAM_MATCHED

EXAMPLES
	when HTTP_REQUEST {
	    set my_loc "http://www.i-want-a-bigip-for-christmas.com"
	    TCP::respond "HTTP/1.1 302 Found\r\nLocation: $my_loc\r\nConnection: close\r\nContent-Length: 0\r\n\r\n"
	    TCP::close
	}

HINTS
SEE ALSO
CHANGE LOG
       @BIGIP-9.0.0 --First introduced the command.



BIG-IP				  2017-01-31			      iRule(1)