Forum Discussion
Eduardo_Saito_1
Nimbostratus
Apr 17, 2007Oneconnect
Hey guys,
I'm working on an iRule script that uses a VS + OneConnect profile and I want to enable OneConnect only for a specific set of URIs.
I was taking a look at the manual and I've found this:
ONECONNECT::detach - Detaches client-side and server-side connections.
ONECONNECT::reuse - Marks a connection for reuse in a server-side connection pool.
Let me see if I get this straight. The DETACH option flag a connection to not use OneConnect. The REUSE option flag a connection to stay open on the server side for reuse or will it check if there's a previous established connection ready for reuse?
Thanks!
Eduardo Saito
Assistec Integracao - Brazil
4 Replies
- Eduardo_Saito_1
Nimbostratus
I'm trying this but both are using OneConnect. What I'm trying to do is to use OneConnect except for this specific URI.
What is wrong?when HTTP_REQUEST { Pegar URI. set tmpUri [HTTP::uri] Comparar if { $tmpUri eq "/mspetshop/Images/title.gif" } { ONECONNECT::reuse disable log local0. "URI sem OC: $tmpUri" } else { log local0. "URI com OC: $tmpUri" } }
Thanks! - Steven_Honson_8
Nimbostratus
Hi Eduardo,
I was just wondering if you had any luck with doing this?
I need to do exactly the same thing (disable oneconnect for a specific section of a application), and am having no luck figuring out how to do it.
Thanks,
Steven - Eduardo_Saito_1
Nimbostratus
Hi Steven,
Unfortunately I didn't make that up.
I think that what we are trying to do is to set a layer-4 decision based on a layer-7 value which I don't think it is possible because the connection is already established at the time that the Irule is working. I've tried that same thing but using layer-2 and it worked ok (althought it wasn't the solution I was seeking).
Hope that you have more luck than I had and if you figure this out please share with us your solution.
Cheers!
Eduardo Saito
Assistec Integracao - Deb_Allen_18Historic F5 AccountAs Eduardo seems to have experienced, I don't believe you can selectively disable OneConnect, especially not in the middle of an active connection.
The "ONECONNECT::reuse" command is intended to manage the current connection status for re-use for subsequent requests. Most likely use is for security considerations.
The "ONECONNECT::detach" command is intended to detach the server side of the connection without closing the client side. I've never had to use this one: I've used the LB::detach command instead. Useful for re-selecting a server, as OneConnect will force re-selection of the same server otherwise.
HTH
/deb
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