-
Notifications
You must be signed in to change notification settings - Fork 302
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
unsupported permessage-deflate parameter: "client_max_window_bits=15" from client #443
Comments
Since we don't include it in the handshake request whatever server you're trying to use isn't implementing the RFC correctly. See https://datatracker.ietf.org/doc/html/rfc7692
The library is correct to error on it. |
I did include the |
related #351 |
The situation is different from #351. There the server is hinting us on its window size but that doesn't matter to use as we always use the largest window size. See #258 (comment) Here if you include
If you know a way to adjust the window size dynamically with the standard library deflate package I'd be happy to add support and then we can support these extensions parameters fully. |
In my case the server always reply with switch p {
case "client_no_context_takeover":
copts.clientNoContextTakeover = true
continue
case "server_no_context_takeover":
copts.serverNoContextTakeover = true
continue
case "client_max_window_bits=15":
continue
} |
But you just said
If you didn't include it and the server is always replying then the server is broken. It's violating the RFC. |
I meant the server replies with Probably most servers do that |
Ok fair enough I'll add a bypass here too. |
If a websocket server reply with extension
permessage-deflate; client_max_window_bits=15
an error happens:at
https://github.com/nhooyr/websocket/blob/bd07a64be6809ef46b76fff5ef7263ef7641980f/dial.go#L268-L300
The text was updated successfully, but these errors were encountered: