Skip to content

Do not crash Executor when send_response fails due to client failure.… - #120

Merged
alsora merged 1 commit into
irobot-ros:irobot/ironfrom
mauropasse:mauro/cherry-pick-pr-118-iron
Aug 25, 2023
Merged

Do not crash Executor when send_response fails due to client failure.…#120
alsora merged 1 commit into
irobot-ros:irobot/ironfrom
mauropasse:mauro/cherry-pick-pr-118-iron

Conversation

@mauropasse

Copy link
Copy Markdown
Collaborator

Iron version of #118

Do not crash Executor when send_response fails due to client failure.

…ros2#2276)

* Do not crash Executor when send_response fails due to client failure.

Related to ros2/ros2#1253

It is not sane that a faulty client can crash our service Executor, as
discussed in the referred issue, if the client is not setup properly,
send_response may return RCL_RET_TIMEOUT, we should not throw an error
in this case.

Signed-off-by: Zang MingJie <zealot0630@gmail.com>

* Update rclcpp/include/rclcpp/service.hpp

Co-authored-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Signed-off-by: Zang MingJie <zealot0630@gmail.com>

* address review comments.

Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>

---------

Signed-off-by: Zang MingJie <zealot0630@gmail.com>
Signed-off-by: Tomoya Fujita <Tomoya.Fujita@sony.com>
Co-authored-by: Zang MingJie <zealot0630@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants