Forum Discussion
Tomasz_Radzisze
Nimbostratus
Aug 14, 2007Variable set in SERVER_CONNECTED is unknown in SERVER_DATA
I have a problem with a variable in an iRule. I set a variable "inBody" in the SERVER_CONNECTED event, in which I also call TCP::collect. Then, when TCP data arrives and the SERVER_DATA event is trigg...
Tomasz_Radzisze
Nimbostratus
Aug 16, 2007Regarding $maxiter, I cut out part of I rule to simplify it and I cut out too much as you noticed. The variable is set. Regarding my problem, I am now checking if the variable is set at the beginning of both SERVER_CONNECTED and SERVER_DATA events. In both cases, I set it if it isn't set, but I print logs when the behaviour is not as expected, i.e.
- when I find the variable already set in SERVER_CONNECTED,
- when I find the variable unset in SERVER_DATA.
I observe both logs from time to time. However, the situation is more complicated, because there is also an iRule for clientside events, which uses LB::detach and node to change associated server during connection. It seems that wrong order of SERVER_CONNECTED and SERVER_DATA occurs just after reselecting server with LB::detach + node. I didn't debug it thoroughly. I'll probably leave it with checking the variables and setting them conditionally, because this solution has proven to work well even in high load tests, when there are several connections active at the same time.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects