Open clalancette opened 3 years ago
From https://github.com/ros2/rmw_cyclonedds/pull/305#issuecomment-823818907 :+1:
In general, yes; but as the DDS spec has a signed 32-bit integer for the depth (don't know why, I suspect Java) and as 2 billion really is a pretty unreasonable value, I think it is highly unlikely there is any code out there that tries to use a depth ≥2^31. I think you could also quite reasonably limit the depth in ROS 2 to 2^31-1 without causing any problems.
While investigating https://github.com/ros2/ros2cli/issues/603 , we found out that XML-RPC only supports 32-bit signed integers: http://xmlrpc.com/spec.md . Since this is used as the communication mechanism between the ros2 daemon and clients, this could be a problem in the future. We worked around that problem for the above issue by forcing the depth number in question to 0 (see https://github.com/ros2/rmw_cyclonedds/pull/305), but that won't always work.
The potential solutions are:
There may be other options here, but we should figure out a real solution.