Skip to content
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

Error while sending ping #337

Closed
rideg opened this issue Apr 29, 2022 · 1 comment
Closed

Error while sending ping #337

rideg opened this issue Apr 29, 2022 · 1 comment

Comments

@rideg
Copy link

rideg commented Apr 29, 2022

I was trying to send periodic ping messages from my server to a web client and it fails at the very first ping with the following error:

failed to ping: WebSocket closed: received header with unexpected rsv bits set: true:false:false

It seems the library does not allow the RSV1 bit for control messages here.

However both ping and pong might have payload accoring to the RFC:

A Ping frame MAY include "Application data"

and

A Pong frame sent in response to a Ping frame must have identical
"Application data" as found in the message body of the Ping frame
being replied to.

So I assume compression should make sense for them too. I tried it with the latest dev version, with multiple browsers and the issues persisted.

@rideg
Copy link
Author

rideg commented Apr 29, 2022

I did some more investigation and it seems somehow the browser sends an inappropriate message before sending the PONG. it might be related the proxy configuration in my system.

Closing the issue.

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

No branches or pull requests

1 participant