Forum Discussion
Does LTM support websocket protocol with cookie persistence?
Hi!
We're currently testing Web sockets at my company as well so this is an interesting topic. 🙂
Why do you use the HTTP::enable part of the rule? Assigning the HTTP profile to the virtual server should accomplish the same thing.
The load balancer should not change server in mid connection and the clients are using normal HTTP before the upgrade (right?), so the cookie persistence should work. Have you tried logging the client cookies to verify that the subsequent connections actually uses the cookie you set?
Cleaned up the format of the iRule to make it easier for others to read it.
when CLIENT_ACCEPTED {
HTTP::enable
}
when HTTP_REQUEST {
if { ([string tolower [HTTP::header value Upgrade]] equals "websocket" ) && ([string tolower [HTTP::header value Connection]] equals "upgrade" ) } {
log local0. "HTTP Disable"
HTTP::disable
}
}
/Patrik
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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