Ask Your Question

get rid of warning: Inbound TCP/IP connection failed

asked 2018-03-23 03:27:37 -0500

knxa gravatar image

updated 2018-04-02 02:26:14 -0500

I get this warning intermittently:

Inbound TCP/IP connection failed: connection from sender terminated before handshake header received. 0 bytes were received. Please check sender for additional details.

I see this sometimes when a subscriber unsubscribes a topic. I am assuming the warning is issued if the unsubscription happens while the next message is already coming in. The concrete place I am seeing this is when using smach monitor_state. When a monitored topic delivers a message that satisfies the state, it unsubscribes, and sometimes, I see the above warning.

I want to get rid of warnings, when they really don't indicate a problem.

Can I unsubscribe in a way that is more "clean" and doesn't cause this warning?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-06-08 05:58:10 -0500

skyap gravatar image

maybe you have solve it. remove rospy.spin() after your callback and change to

while not rospy.is_shutdown():
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2018-03-23 03:27:37 -0500

Seen: 1,271 times

Last updated: Apr 02 '18