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 :ssl_closed instead of passing through to handle_info/2 #45

Merged
merged 1 commit into from
Nov 24, 2017

Conversation

queer
Copy link
Contributor

@queer queer commented Nov 24, 2017

Fixes :ssl_closed never being handled and being passed through to the handle_info/2 callback instead.

Edit for more info: When connecting to an SSL websocket (wss://), a disconnect will send :ssl_closed instead of :tcp_closed. This wasn't handled in WebSockex itself, and so it was being passed through to the handle_info/2 callback, which I presume isn't quite the right behaviour.

@Azolo Azolo merged commit 8f280f1 into Azolo:master Nov 24, 2017
@Azolo
Copy link
Owner

Azolo commented Nov 24, 2017

That seems like a pretty glaring oversight, thanks.

Azolo added a commit that referenced this pull request Nov 24, 2017
Azolo added a commit that referenced this pull request Nov 24, 2017
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.

None yet

2 participants