-
环境:windows10 X64, VS2022 |
Beta Was this translation helpful? Give feedback.
Answered by
qicosmos
Mar 4, 2024
Replies: 3 comments 2 replies
-
客户端默认超时时间是5秒,你可以把调用的超时时间改成20秒或更长。 co_await client->call_for< coro_Work >(30s); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
poor-circle
-
谢谢,这个问题我测试下。还有一个疑问,async_simple::coro::Lazy<类型> coro_Work(输入参数); 输入参数是一个结构体,这个结构体大小最大可以是多少字节? 之前碰到stack error,把结构体定义改小才可以 |
Beta Was this translation helpful? Give feedback.
0 replies
-
我理解这和你的编译器分配的栈大小有关系吧 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
客户端默认超时时间是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);