-
Notifications
You must be signed in to change notification settings - Fork 511
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
Closes RobotWebTools/rosbridge_suite#721 #722
Conversation
self.protocol.incoming(data.decode().strip('')) | ||
else: | ||
pass | ||
if self.bson_only_mode: # is False |
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.
what is the is False
comment referring to?
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.
That was just a little memory aid that I forgot to remove.
Thanks for the hint and the fast response. I removed in the newest commit.
Thanks! Added one comment, other than that looks good. |
🙏 ty |
Hi @amacneil, As I commented in the issue: ros1 RosbridgeTcpSocket won't close and spins in an endless loop #721. Is there any plan to release these changes and update the release candidate package for ros 1 to fix this bug? Thanks! |
@jtbandes do you know how to do a release? |
Public API Changes
None
Description
When the TCP connection of the client is closed, the Python Socket.recv(...) function returns an empty byte array. However, since the while loop checks for an empty string, the thread hangs in an infinite loop and causes the connection not to be disconnected.
Also added minor description changes for more clarity.
Fixes #721