TCP::release¶
Description¶
Causes TCP to release and flush collected data, and allow other
protocol layers to resume processing the connection.
Syntax¶
TCP::release [<length>]
TCP::release [<length>]¶
- Causes TCP to release and flush collected data, and allow other protocol layers to resume processing the connection. Returns the number of bytes actually released. If specified, up to length bytes are released; the return value will tell you how many bytes actually were.
Examples¶
when CLIENT_ACCEPTED {
TCP::collect 15
}
when CLIENT_DATA {
if { [TCP::payload 15] contains "XYZ" } {
pool xyz_servers
} else {
pool web_servers
}
# HTTP_REQUEST will not fire until we release the collected TCP data
TCP::release
}