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

How to kill the socket connection #108

Open
Wang-Ruohan opened this issue May 31, 2022 · 1 comment
Open

How to kill the socket connection #108

Wang-Ruohan opened this issue May 31, 2022 · 1 comment

Comments

@Wang-Ruohan
Copy link

Hi, I met a problem with killing the connection to the robot.
I use the following statement to connect to the robot,
rob = urx.Robot("192.168.0.100")
However, when this program runs out and i end this program with ctrl+c, but not close the terminal. When i try to run the same program on the terminal i used before. It said:
urx.ursecmon.TimeoutException: Did not receive a valid data packet from robot in 0.5
it seems that i did not fully kill the connection, the previous connection occupied the socket i want to connect.
So, how can i fully kill it?

@alvcap
Copy link

alvcap commented Jan 13, 2023

have you tried executing rob.close() ?

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

No branches or pull requests

2 participants