-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[coro_io] dead lock when call server::stop() in server self's thread #905
Labels
bug
Something isn't working
Comments
好吧,在rpc函数直接调用server.stop()似乎会导致死锁,原因是没检查stop请求是否在rpc线程池中发起。目前你可以把stop扔给另外一个线程完成。 |
死锁原因: |
|
后续会看下怎么修复,目前你可以抛到另外一个线程去stop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
正如coro_rpc的example代码
启动以后程序会一直阻塞,那么如何正常关闭程序呢,如果直接停掉程序可能无法正常调用main函数里面的变量的析构函数,我尝试在一个rpc调用函数中调用server.stop()或者在set_complete_handler里面调用server.stop()都无法正常关闭,请问还有其他方法吗? coro_rpc_server will quit之后还是无法退出
The text was updated successfully, but these errors were encountered: