-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This makes it easy to catch and log all IO errors if desired. The exception payload gives the type and can be used for matching specific errors. It also allows attaching extra information to exceptions. When multiple exceptions occur, we now keep and report all the backtraces. If multiple IO exceptions occur, the result is also an IO exception (so you can still catch all IO errors). Various functions now add extra context to IO exceptions: - `accept_fork` adds the remote address. - Various functions add their arguments (`Net.connect`, `Path.load`, etc). Also: - `Eio_linux.openfile` is gone (was just a hack for testing in the early days). - `connect` functions no longer need to wrap all errors in `Connection_failure`. The fact you got an IO error from `connect` is enough. - Fixed non-tail-recursive continue in Eio_luv (`Socket_of_fd`).
- Loading branch information
Showing
26 changed files
with
861 additions
and
312 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.