-
Notifications
You must be signed in to change notification settings - Fork 17
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 send_all on eio #132
Fix send_all on eio #132
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The messages argument is important, as the send_all should be fully completed (i.e. all messages sent) before continuing.
That definitely seems like an error - but I think the fix is incomplete. Thanks for raising this! The messages to be sent needs to happen as part of the function. I've added suggestions (although I'm not sure they work as expected). Also I think the tests needed to be extended to verify |
I've added your suggestions to the pull request. (Sorry for the force push, was amending the commit message) |
Tests should be added to |
Done. |
Looks good. Thanks for doing this. I'll merge once the CI tests passes |
Thanks |
Was trying the bindings on eio and for some reason
Zmq_eio.Socket.send_all
wasn't working at all, butZmq_eio.Socket.send
was. Checked the source code and I suppose the wrong argument was given inside the function (do correct me if I'm wrong).It finally works with the change locally built on my machine (at least I think so).