-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[websocket_]terminate isn't always called #23
Comments
Same for plain HTTP. We should probably try to call it on error there too. This would avoid initializing things that don't get cleaned up when a crash happens. |
gen_server and others also do this, so let's consider this a bug. |
gen_server and others don't call it for an error in init, we'll do the same and only call for an error in handle. |
I'll wait for real-world examples before implementing this one. |
This ensures that an error thrown in handler_terminate/4 will be shown after the error from handler_call/6, in the expected order. As we already call WebSocketHandler:terminate/3, this should fix issue #23.
Fixed for both HTTP and WebSocket. |
On errors, websocket_terminate isn't called. We probably want to call it anyway so the handler can clean up.
The text was updated successfully, but these errors were encountered: