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

Wrap socket calls with error handler #144

Merged
merged 3 commits into from
Dec 17, 2019

Conversation

asgrim
Copy link
Collaborator

@asgrim asgrim commented Dec 17, 2019

Fixes #138

Turns out, actually the errors raised with socket_read/socket_send calls are already correctly handled with socket_last_error, so we just need to suppress the errors from bubbling up with the @ operator. Testing this class is going to be very tricky however, but we can delay that for #64 as a future improvement I think.

@asgrim asgrim added the enhancement New feature or request label Dec 17, 2019
@asgrim asgrim added this to the 2.1.1 milestone Dec 17, 2019
@cschneid cschneid merged commit 6226474 into master Dec 17, 2019
@asgrim asgrim deleted the wrap-socket-calls-with-error-handler branch December 17, 2019 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrap socket_* calls with error-catching handlers
2 participants