Forum Discussion
Tomasz_Radzisze
Nimbostratus
Jun 12, 2007Problem with TCP::notify request
I'm trying to use TCP::notify request to implement something like a procedure ("normal" TCL procedures are disabled within iRules). It seems that notify request doesn't work. I tried with a simple iRule presented below.
when CLIENT_ACCEPTED {
TCP::collect 12
}
when CLIENT_DATA {
if { [TCP::payload 12] contains "x" } {
log local0.debug "Calling notify request"
TCP::notify request
log local0.debug "Called notify request"
}
}
when USER_REQUEST {
log local0.debug "User request triggered"
}
I run this and I send some "xxxxxxxxxxxxxxxxxxxxx" over TCP. Then I look into the logs and there is:
Jun 12 09:12:06 tmm tmm[315]: Rule test_notify_request : Calling notify request
Jun 12 09:12:06 tmm tmm[315]: Rule test_notify_request : Called notify request
And nothing more. The log from USER_REQUEST does not appear. Am I doing something wrong or there is some bug in the Big-IP ?
I'm using BIG-IP 9.4.0 build 517.5
There are no other iRules attached to this virtual server. Or does "notify request" require some specific profile, for example HTTP?
- Tomasz_Radzisze
Nimbostratus
I found out that it works after changing collect to unspecified length and adding TCP::release. Now the iRule looks as followswhen CLIENT_ACCEPTED { TCP::collect } when CLIENT_DATA { if { [TCP::payload] contains "x" } { TCP::release log local0.debug "Calling notify request" TCP::notify request log local0.debug "Called notify request" } } when USER_REQUEST { log local0.debug "User request triggered" }
- Tomasz_Radzisze
Nimbostratus
These events are triggered after the commands TCP::notify response and TCP::notify request. See wiki page for TCP::notify - Deb_Allen_18Historic F5 Account(Sorry I never updated the wiki page once I found out more -- thank you, tora, for doing so)
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