Forum Discussion
Kai_Wilke
MVP
Hi Ingard,
unfortunately there is no way to access TCP flags (PSH, RST, etc.) using iRules.
But you may try this snipped as a starting point to identify slow server responses...
when RULE_INIT {
set static::timeout 10000 ; msec
}
when HTTP_REQUEST {
set debug(request_url) "[HTTP::host][HTTP::uri]"
set debug(id) [after $static::timeout {
log local0.warn "$static::timeout msec timeout reached for \"$debug(request_url)\""
}]
}
when HTTP_RESPONSE {
after cancel $debug(id)
unset -nocomplain debug
}
when CLIENT_CLOSED {
if { [info exist debug(request_url)] } then {
log local0.warn "Connection closed without HTTP response for \"$debug(request_url)\""
}
}
Cheers, Kai
JRahm
Dec 20, 2022Admin
FYI Kai_Wilke, you can access the TCP flags in the FLOW_INIT event with the DATAGRAM::tcp flags command.