-
Notifications
You must be signed in to change notification settings - Fork 911
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
start thread only after successfully adding the connection #603
start thread only after successfully adding the connection #603
Conversation
Test passed. |
This looks reasonable. If we merge this with the symptom workaround with a good error message pointing back to the ticket it should be safe. |
Protect against race condition where a new `TCPROSTransport` connection is created and added to a `_SubscriberImpl` that is already closed. Checks and returns False if closed so transport creator can shutdown socket connection. Fixes issue #544.
The first commit tries to fix the actual problem so that a connection should never be added to a closed subscriber in the first place. The second commit will still catch the case and prevent a memory leak. If that still happens the error message points the user to the ticket to provide feedback. |
+1 |
LGTM |
…ction start thread only after successfully adding the connection
Test passed. |
can you please direct me to where in indigo ros the fix has been made for |
@mpatalberta Please see the line above:
The commit mentions version 1.11.11 as the first release the patch has been part of. |
…nnection start thread only after successfully adding the connection
Aims to address #544