Forum Discussion
kuhn_52743
Nimbostratus
Sep 14, 2009"Address In Use" TCL Error
Hi,
This may be a silly error as I am new to iRules.
Attempting to route a connection to a specific pool member from within an RTSP_REQUEST event.
The TCL...
kuhn_52743
Nimbostratus
Sep 16, 2009Update:
Nat's post led me to understand what was happening. I was indeed attempting to use the 'pool' command to route a connection that had already been routed. So I worked around it by checking at the beginning to see if the connection already was established to a pool member, and not using 'pool' again if that was the case.
In order to check whether a connection already had an established server connection, I use [IP::server_addr]. My original plan was that if it comes back as zero, it's not routed to a server yet. That doesn't work because if it's not part of an established connection, it throws an exception. I didn't expect that, because the documentation says it will just return 0 if no connection is established. So instead, I use the "catch" statement to catch an error if no server side exists.
Scott
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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