TCP::close

Description

Closes the TCP connection.

Syntax

TCP::close

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.

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
}