-
环境:windows10 X64, VS2022 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
客户端默认超时时间是5秒,你可以把调用的超时时间改成20秒或更长。 参考这个代码: co_await client->call_for< coro_Work >(30s); |
Beta Was this translation helpful? Give feedback.
-
谢谢,这个问题我测试下。还有一个疑问,async_simple::coro::Lazy<类型> coro_Work(输入参数); 输入参数是一个结构体,这个结构体大小最大可以是多少字节? 之前碰到stack error,把结构体定义改小才可以 |
Beta Was this translation helpful? Give feedback.
-
我理解这和你的编译器分配的栈大小有关系吧 |
Beta Was this translation helpful? Give feedback.
客户端默认超时时间是5秒,你可以把调用的超时时间改成20秒或更长。
参考这个代码:
https://github.com/alibaba/yalantinglibs/blob/main/src/coro_rpc/tests/test_coro_rpc_client.cpp#L134
co_await client->call_for< coro_Work >(30s);