ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
4

Inbound TCP/IP connection failed... help?

asked 2014-03-20 01:02:30 -0600

lvsteenson gravatar image

updated 2016-01-22 09:56:17 -0600

gvdhoorn gravatar image

Hi,

Has anyone come across the warning message:

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

I experience this multiple times when running different nodes in my system. The only thing they have in common is a class that I made to handle a lot of the communication such that all the publishers and subscribers together. Could launching several instances of this class in each node cause an error such as above?

I am lost as regards what the problem may be as I haven't noticed any actual loss of functionality but given that it is to be used for a control system I would prefer it not to continuously give warning messages!

I am using ROS on a ubuntu 12.04 LTS machine with 8 core i7 processor.

Any ideas much appreciated :)

edit retag flag offensive close merge delete

Comments

Please don't open duplicates. It seems nobody knows the answer, and opening your question over and over again doesn't convince people to investige for you.

demmeln gravatar image demmeln  ( 2014-03-21 00:56:13 -0600 )edit

Sorry I know this looks bad but actually it was a problem trying to log in resulting in my question being posted multiple times!

lvsteenson gravatar image lvsteenson  ( 2014-03-21 01:45:24 -0600 )edit

Oh ok, thanks for clarifying ;-). I hope you can login fine now. Sorry I can't help with the question. You could try dig in the code and see where this message comes from exactly.

demmeln gravatar image demmeln  ( 2014-03-21 01:57:30 -0600 )edit

getting the same problem over and over again

sumit6887 gravatar image sumit6887  ( 2016-01-22 07:46:22 -0600 )edit

I never found a solution to this and instead switched away from using topics to solely using the parameter server. Its okay for my application where the data throughput isn't that high but certainly isn't as efficient as using topics.

lvsteenson gravatar image lvsteenson  ( 2016-01-22 08:10:25 -0600 )edit

switched away from using topics to solely using the parameter server.

@lvsteenson: you are using the parameter server as a surrogate for topics?

gvdhoorn gravatar image gvdhoorn  ( 2016-01-22 09:51:54 -0600 )edit

@lvsteenson: if you can share that 'common class' somehow, we can perhaps find out why this is happening. Are you creating/destroying publishers/subscribers at a high rate?

gvdhoorn gravatar image gvdhoorn  ( 2016-01-22 09:57:59 -0600 )edit

Basically my system now uses the parameter server to save the latest data from all of the sensors, the controller setpoints etc. Before I was simply creating a publisher once upon the node being launched as would be normal but any other node that was subscribed would have that warning.

lvsteenson gravatar image lvsteenson  ( 2016-01-22 10:16:28 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-09-15 08:12:07 -0600

SL Remy gravatar image

I have gotten this message regularly when running in VirtualBox on one particular machine I use.

I regularly use VMs on different platforms and I'd never run into this issue before.

This BASHonWindows issue helped me realize 1) that I wasn't alone 2) there's a PR.

The root of the matter was that ROS:

assumes that the connect method of non-blocking scoket should return -1 and last_socket_error() should return ROS_SOCKETS_ASYNCHRONOUS_CONNECT_RETURN(=EINPROGRESS). But a non-blocking connect can return 0 when TCP connection to 127.0.0.1 (localhost).

edit flag offensive delete link more

Comments

The issue also has code, so you can patch yourself if you're in a hurry.

SL Remy gravatar image SL Remy  ( 2017-09-15 08:12:27 -0600 )edit

Answering such an old question is definitely commendable, but it's quite a statement that what the OP was seeing is caused by that particular piece of code. Can you explain how you came to that conclusion?

gvdhoorn gravatar image gvdhoorn  ( 2017-09-20 16:35:57 -0600 )edit

So this problem is mainly about using ros applications with TCP connection to 127.0.0.1 (localhost)?

azerila gravatar image azerila  ( 2020-05-30 14:21:44 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-03-20 01:02:30 -0600

Seen: 18,188 times

Last updated: Sep 15 '17