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

don't push twice for the same message to avoid race conditions #150

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ZabelTech
Copy link

What is the purpose of this pull request? (put an "X" next to item)

[ ] Documentation update
[ x ] Bug fix
[ ] New feature
[ ] Other, please explain:

What changes did you make? (Give an overview)
This PR changes Wire._message such that the entire binary data of a given message is pushed into the buffer at once.
This is necessary as pushing twice introduces a race condition which would produce malformed message. I saw that in practice and this change has fixed it.

Which issue (if any) does this pull request address?

Is there anything you'd like reviewers to focus on?
?? is widely available, but I'm not sure what backwards compatibility requirements this project has.

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.

1 participant