I need to send an RPC with the Rust Cap'n Proto API that exceeds the default message traversal limit. When I try to send the message, I get the following error:
remote exception: <class \'capnp.lib.capnp.KjException
\'>:capnp/arena.c++:130: failed: Exceeded message traversal limit.
See capnp::ReaderOptions.
If I were reading a message using capnp::serialize::read_message
, I could provide a ReaderOptions
struct specifying a new traversal limit.
However, I am making and sending a request like in the calculator example instead of reading a message directly. How can I set the traversal limit for my request message?