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

Don't call ErrorAndDisconnect in a goroutine #57

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

erikdubbelboer
Copy link
Member

ErrorAndDisconnect can only be called in a handler as it panics with http.ErrAbortHandler which normally gets recovered by net/http.

ErrorAndDisconnect can only be called in a handler as it panics with
http.ErrAbortHandler which normally gets recovered by net/http.
Copy link
Collaborator

@koenbollen koenbollen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aaaahh. ofc! 😅

@erikdubbelboer erikdubbelboer merged commit 78878d4 into main Sep 11, 2023
1 check passed
@erikdubbelboer erikdubbelboer deleted the no-ErrorAndDisconnect-goroutine branch September 11, 2023 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants