10-Jun-2020
11:34
- last edited on
04-Jun-2023
21:25
by
JimmyPackets
The syntax is accepted by the F5:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "liaison" } {
IP::idle_timeout 600
log local0. "Timeout set to [IP::idle_timeout]"
}
}
but the log gives me this:
(...)increase_idle_timeout] error: /common/increase_idle_timeout:2: error: [parse error: PARSE missingBracket 28 {missing close-bracket}][{ [string tolower [HTTP::uri] contains "liaison" }]
10-Jun-2020
12:42
- last edited on
22-Nov-2022
07:47
by
JimmyPackets
Hello, this error message does not appear to be from this code that looks correct.
Did you write in some time like this way (as appear in error message) ?
if { [string tolower [HTTP::uri] contains "liaison" }] {
If I do this wrong code, I get this similar error:
01070151:3: Rule [/Common/irule_devcentral] error: /Common/irule_devcentral:2: error: [parse error: PARSE missingBracket 27 {missing close-bracket}][{ [string tolower [HTTP::uri] contains "liaison" }]
Regards
10-Jun-2020 13:08
No, the code is pasted directly from the box. Also - just to clarify, the iRule compiles and saves - the error is visible in the /var/log/ltm
Also, the timeout is not increased 😕