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

How to Log connections

asked 2012-02-16 04:18:52 -0600

Daniel Pinyol gravatar image

Hi, How can I log ROS TCP connection creations and destructions? I'm trying to move all my clients to persistent connections to avoid recreating too many TCP sockets (to avoid they dangle for a couple of minutes), but I still have many TIME_WAIT connections (for which I cannot see to which process they belong with netstat nor lsof -i)

Maybe enabling logs for roscore? We have diamondback but we're migrating soon to electric.


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-02-16 04:43:04 -0600

dornhege gravatar image

Maybe it helps to set the loggerlevel of roscpp or similar to DEBUG.

edit flag offensive delete link more

answered 2012-02-16 06:36:33 -0600

Lorenz gravatar image

Not sure if it helps, but rosnode info shows all open socket connections. The implementation uses an xmlrpc call that you could maybe also use to poll open connections. Not really nice though...

edit flag offensive delete link more

Question Tools


Asked: 2012-02-16 04:18:52 -0600

Seen: 460 times

Last updated: Feb 16 '12