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

Handle unexpected continuation frames #33

Conversation

bfolkens
Copy link
Contributor

As described in #32, an unexpected continuation frame will lead to a function clause error. This patch adds an additional translate/1 clause to match the unexpected frame and return an error tuple: {:error, :unexpected_continuation}. Included test with the failure case.

@the-mikedavis the-mikedavis changed the title Handle unexpected continuation frames - Fixes #32 Handle unexpected continuation frames Apr 16, 2023
@the-mikedavis the-mikedavis merged commit f44a35e into elixir-mint:main Apr 16, 2023
@the-mikedavis
Copy link
Collaborator

Thanks!

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.

No function clause error for some invocations of Mint.WebSocket.Frame.translate/1
2 participants