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 panic on channel failures. #1808

Merged
merged 1 commit into from
Mar 23, 2018
Merged

Don't panic on channel failures. #1808

merged 1 commit into from
Mar 23, 2018

Conversation

russjones
Copy link
Contributor

Purpose

Channel failures lead to panics because control flow continued to to processing channel request. Instead, a warning should be logged, returned to the user, and then exit from that goroutine.

Implementation

  • If an error occurs during Accept, log the warning, return the error to the user, and exit the goroutine.

@russjones russjones requested a review from klizhentas March 23, 2018 00:56
@russjones russjones merged commit b53c795 into master Mar 23, 2018
@russjones russjones deleted the rjones/panic branch March 23, 2018 01:01
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.

2 participants