Skip to content

[websocket]: ability to read connection upgrade headers (IDFGH-14252) #715

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bryghtlabs-richard opened this issue Dec 17, 2024 · 0 comments · May be fixed by #794
Open

[websocket]: ability to read connection upgrade headers (IDFGH-14252) #715

bryghtlabs-richard opened this issue Dec 17, 2024 · 0 comments · May be fixed by #794
Assignees
Labels
Status: In Progress Type: Feature Request Feature Request for esp-protocols

Comments

@bryghtlabs-richard
Copy link
Contributor

Is your feature request related to a problem?

ESP WebSocket-client instances are unable to use cookie-based sticky sessions, because there is no interface to extract the upgrade response headers.

Here's an example of what we'd like to use: https://docs.aws.amazon.com/prescriptive-guidance/latest/load-balancer-stickiness/alb-cookies-stickiness.html, which tries to set lb_cookie to remember which backend server the device connected to, but there's no way for the client to read the value of the Set-Cookie: lb_cookie=<server-index-value> header.

Describe the solution you'd like.

When connecting, I'd like the ability to iterate HTTP response headers during the WEBSOCKET_EVENT_CONNECTED event handler.

Once I have this, I can save out the lb_cookie for use in future reconnections.

Describe alternatives you've considered.

No response

Additional context.

No response

@bryghtlabs-richard bryghtlabs-richard added the Type: Feature Request Feature Request for esp-protocols label Dec 17, 2024
@github-actions github-actions bot changed the title [websocket]: ability to read connection upgrade headers [websocket]: ability to read connection upgrade headers (IDFGH-14252) Dec 17, 2024
@espressif-bot espressif-bot added the Status: Opened Issue is new label Dec 17, 2024
@glmfe glmfe linked a pull request Apr 2, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: In Progress Type: Feature Request Feature Request for esp-protocols
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants