Skip to content

How to kill the socket connection #108

Open

Description

@Wang-Ruohan

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?

Activity

  1. alvcap commented on Jan 13, 2023

    @alvcap

    have you tried executing rob.close() ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions