avi.vs.close.connection

DataScript

Function avi.vs.close_conn ( [reset] )
Description Closes the current TCP/UDP connection. The reset flag is of no consequence in case of a UDP connection.
Events VS_DATASCRIPT_EVT_L4_REQUEST
VS_DATASCRIPT_EVT_L4_RESPONSE
Parameter The reset flag will RST the connection, rather than use the default FIN.
Returns No return value
Example

if avi.vs.client_ip() == "10.1.1.1" then
avi.vs.close_conn()
end
avi.vs.close_conn(1)