Skip to content

Commit

Permalink
Do not return error when rcl_send_response timeout. (#408)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya authored Oct 30, 2024
1 parent 90e71f5 commit cc6879f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rclc/src/rclc/executor.c
Original file line number Diff line number Diff line change
Expand Up @@ -1473,6 +1473,12 @@ _rclc_execute(rclc_executor_handle_t * handle)
}
// handle rcl-side services
rc = rcl_send_response(handle->service, &handle->req_id, handle->data_response_msg);
if (rc == RCL_RET_TIMEOUT) {
// because of racy condition between service client and server endpoint creation,
// server cannot find the concerned client just yet.
PRINT_RCLC_WARN(rclc_execute, rcl_send_response);
rc = RCL_RET_OK;
}
if (rc != RCL_RET_OK) {
PRINT_RCLC_ERROR(rclc_execute, rcl_send_response);
return rc;
Expand Down

0 comments on commit cc6879f

Please sign in to comment.