-
Notifications
You must be signed in to change notification settings - Fork 1
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 issue in ZmqSubscriber that can cause a segfault #91
Fix issue in ZmqSubscriber that can cause a segfault #91
Conversation
…r if more than 10" This reverts commit 72c8fa6.
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.
Found an interesting post about different ways of returning empty string.
https://stackoverflow.com/questions/26587110/returning-an-empty-string-efficient-way-in-c
Looks like return {}
might be better.
Interesting, if almost certainly a micro-optimization in this case, since ZmqSubscriber::connect_for_sends should only be called 1/s in the worst case where the other end of the connection is never published to the Connectivity Service |
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
My tests have all run fine so far, but I haven't yet been able to find where the code that calls |
It doesn't, at the moment (it would be in NetworkManager::create_receiver). While debugging this without the change in |
Going to merge this PR, and create a new tag to be used for the third candidate release for |
No description provided.