Ask Your Question
0

What happens to service client when service server crashes?

asked 2014-09-30 08:45:03 -0500

trianta2 gravatar image

If I create a service server node and then, for whatever reason, the node crashes, what happens to all of the clients which were connected to the server?

If the server node respawns at some point, can the clients continue to use the service server automatically?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-09-30 09:08:59 -0500

Adolfo Rodriguez T gravatar image

updated 2014-09-30 10:54:58 -0500

If the service client is non-persistent (the default), the node implementing the server can change (eg. creash, respawn), and clients will properly reconnect when the next request is made. If the client is persistent, then you need to negotiate reconnections yourself.

More info for roscpp and rospy, respectively, can be found here:

http://wiki.ros.org/roscpp/Overview/S...

http://wiki.ros.org/rospy/Overview/Se...

edit flag offensive delete link more

Comments

You mean "persistent", not "non-persistent" in the second statement, right?

dornhege gravatar imagedornhege ( 2014-09-30 09:22:20 -0500 )edit

I believe he does

trianta2 gravatar imagetrianta2 ( 2014-09-30 09:38:28 -0500 )edit

Thanks for catching the typo. Fixed now.

Adolfo Rodriguez T gravatar imageAdolfo Rodriguez T ( 2014-09-30 10:55:23 -0500 )edit

Your Answer

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

Add Answer

Question Tools

3 followers

Stats

Asked: 2014-09-30 08:45:03 -0500

Seen: 189 times

Last updated: Sep 30 '14