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

Report err from OnClose and Close Connection Regardless of the Error #78

Merged
merged 1 commit into from
May 29, 2024

Conversation

alovak
Copy link
Contributor

@alovak alovak commented May 28, 2024

Currently, when we return err from the OnClose or OnCloseCtx handler, we do not close the connection. Leaking connections is a big problem. With this PR, we pass err into ErrorHandler so it can be handled, logged, etc., and then proceed with the connection close.

@alovak alovak merged commit b151908 into master May 29, 2024
3 checks passed
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.

4 participants