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

Handle codec errors in REQ socket recv #172

Merged

Conversation

nullsauce
Copy link
Contributor

Hey there.
This PR handles codec errors when reading from a REQ socket and thus makes the code more resilient to abrupt changes in the underlying tcp connection. In my experience, it was relatively easy to make the panic happen during tests.

Not sure what's planned for the Some(Ok(_)) arm, so I've left it as todo().

Hope this helps. Please let me know if I should do anything particular with the PR. Cheers!

@poyea poyea self-assigned this Sep 12, 2022
Copy link
Collaborator

@mmastrac mmastrac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable to me. I suspect there may need to be some tests added around underlying TCP socket issues.

@mmastrac mmastrac merged commit 59be7a0 into zeromq:master Nov 1, 2023
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

3 participants