When stopping the socket server the accept() method blocks until SIGTERM, this is not pretty and takes time...
I suggest a 1 second timeout which fails silently continuously if no connection is present and allows to check for the rospy.is_shutdown() condition of the while loop to end gracefully and immediately.
When stopping the socket server the
accept()
method blocks until SIGTERM, this is not pretty and takes time...I suggest a 1 second timeout which fails silently continuously if no connection is present and allows to check for the
rospy.is_shutdown()
condition of the while loop to end gracefully and immediately.