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

Improved error handling in Server.Serve #181

Merged
merged 1 commit into from
Mar 15, 2022

Conversation

drdaeman
Copy link
Contributor

Hey, not sure if you'd like the test implementation (that mock listener might be a bit weird - if you feel so, would appreciate any suggestions on how it can be improved) but here is what I came up with to address #180.

Now Serve does not exit on non-fatal errors from Accept. It also logs handleConn errors to the ErrorLog - which is not a solution but should be a partial improvement for #167.

Now Serve does not exit on non-fatal errors from Accept.
This resolves emersion#180

It also logs handleConn errors to the ErrorLog - which is a partial
improvement for emersion#167
Copy link
Owner

@emersion emersion left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@emersion emersion merged commit 8c3df8a into emersion:master Mar 15, 2022
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