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

Fix error handling #9

Open
abooij opened this issue Apr 4, 2016 · 1 comment
Open

Fix error handling #9

abooij opened this issue Apr 4, 2016 · 1 comment
Labels

Comments

@abooij
Copy link
Owner

abooij commented Apr 4, 2016

Our error handling is rather underdeveloped. In particular, we have several instances where we simply call error which should really be some kind of "abort and return -1" statement (for the C ABI).

For socket handling (reading and writing, as in Graphics.Sudbury.Socket.Wayland), we need to deal with sockets that close. (oh and when looking at this, please also compare the size limits for reads and writes with libwayland)

@abooij abooij added the bug label Apr 7, 2016
@abooij
Copy link
Owner Author

abooij commented Sep 25, 2016

The major omissions in CABI.Client are an analogue of libwayland's display_fatal_error (fired on e.g. read/write errors) and display_protocol_error (fired when we have received a wl_display.error message).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant