Skip to content

fix: websocket: respond to Ping messages #940

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

Merged
merged 1 commit into from
Jan 20, 2025
Merged

Conversation

ensc
Copy link
Contributor

@ensc ensc commented Jan 18, 2025

RFC6455 requires in section "5.5.2 Ping"

| Upon receipt of a Ping frame, an endpoint MUST send a Pong frame in | response

Not doing this causes e.g. Firefox to close the websocket automatically which triggers an (unwanted) reload of the page.

RFC6455 requires in section "5.5.2 Ping"

| Upon receipt of a Ping frame, an endpoint MUST send a Pong frame in
| response

Not doing this causes e.g. Firefox to close the websocket automatically
which triggers an (unwanted) reload of the page.

Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de>
@ctron ctron enabled auto-merge January 20, 2025 08:06
@ctron ctron added this pull request to the merge queue Jan 20, 2025
Merged via the queue into trunk-rs:main with commit 124b4bb Jan 20, 2025
59 of 60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants