-
Notifications
You must be signed in to change notification settings - Fork 174
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
IO.read should not gobble errors silently #242
Comments
What is the preferred scheme for error handling? Using something like Or_error, using |
Currently undecided, but I'm collecting comments and proposals here: mirage/mirage-www#274 (also, there's lots of discussion on the mailing list at present) |
Gobbling errors like is is really, really harmful in larger scale uses of Cohttp. Running https://github.com/avsm/opam-mirror is causing undebuggable failures when running a large number of threads. This must be fixed before a 1.0 despite the interface breaking change I think /cc @rgrinberg |
Agreed. I'm running a busy cohttp server and managing its crashes and errors is a pain. |
, which seems to fulfill this request, so I'll close this issue. If this is incomplete or incorrect, please feel free to reopen. |
IO.read currently returns an option, with no ability to comment on the sort of error it's returning. This is a fairly big revision, but it needs to move to a model where errors and end-of-files are distinguished.
See #207
The text was updated successfully, but these errors were encountered: