ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

How to Log connections

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

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 -0500

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 -0500

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

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: 2012-02-16 04:18:52 -0500

Seen: 339 times

Last updated: Feb 16 '12