Skip to content

Commit

Permalink
Set timeout_ms to max value (#133)
Browse files Browse the repository at this point in the history
Signed-off-by: Yadunund <yadunund@openrobotics.org>
  • Loading branch information
Yadunund committed Mar 21, 2024
1 parent 740bfa9 commit d8ecfe9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rmw_zenoh_cpp/src/rmw_zenoh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2234,6 +2234,11 @@ rmw_send_request(
opts.attachment = z_bytes_map_as_attachment(&map);

opts.target = Z_QUERY_TARGET_ALL_COMPLETE;
// The default timeout for a z_get query is 10 seconds and if a response is not received within
// this window, the queryable will return an invalid reply. However, it is common for actions,
// which are implemented using services, to take an extended duration to complete.Hence, we set
// the timeout_ms to the largest supported value to account for most realistic scenarios.
opts.timeout_ms = std::numeric_limits<uint64_t>::max();
// Latest consolidation guarantees unicity of replies for the same key expression,
// which optimizes bandwidth. The default is "None", which imples replies may come in any order
// and any number.
Expand Down

0 comments on commit d8ecfe9

Please sign in to comment.