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

cohttp-eio: Improve error handling in example server #1023

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

talex5
Copy link
Contributor

@talex5 talex5 commented Feb 27, 2024

The example was using ~on_error:raise, which causes the server to crash if any error occurs handling a connection. This is unlikely to be what you want. Instead, log the error and continue.

This also now matches the behaviour of the Lwt example, which just logs errors and continues.

(from #1021 (comment))

@talex5 talex5 force-pushed the eio-fix-example branch 2 times, most recently from 034aba8 to 5c9b4dd Compare February 27, 2024 14:24
The example was using `~on_error:raise`, which causes the server to
crash if any error occurs handling a connection. This is unlikely to be
what you want. Instead, log the error and continue.

This also now matches the behaviour of the Lwt example, which just logs
errors and continues.
@mseri mseri merged commit cf2ae33 into mirage:master Feb 27, 2024
16 of 19 checks passed
@mseri
Copy link
Collaborator

mseri commented Feb 27, 2024

Thanks

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.

None yet

2 participants