-
Notifications
You must be signed in to change notification settings - Fork 75
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
websocket write bug fix #88
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.
LGTM but can you clean up the commits, maybe squash all the 14 commit into a single commit with a meaningful commit message.
@kareali I made sure the repo settings only allow for squash and merge for pull requests. Github should take care of the squashing and then I just edit the commit message before I close the PR. |
Sounds good, Just approved the PR. |
Motivation
Fixes bug where there is more than one outstanding call to web socket write.
Modifications
Change summary
Added mutex + lock_guard to protect outgoing message queue from concurrent access.
Testing
Changes have been tested with files >10 MB
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.