Skip to content
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

selector未初始化,没有panic,而是挂起 #771

Closed
WinterSweetHe opened this issue Dec 20, 2022 · 4 comments
Closed

selector未初始化,没有panic,而是挂起 #771

WinterSweetHe opened this issue Dec 20, 2022 · 4 comments

Comments

@WinterSweetHe
Copy link

WinterSweetHe commented Dec 20, 2022

初始化xclient时,使用了SelectByUser,初始化后,没有调用xClient.SetSelector()去设置自定义的selector,之后用xclient发起调用,导致程序挂起;
image
请教一下,这里selector没有初始化,不应该是panic吗?
操作系统:mac
rpcx版本:1.7.12

@smallnest
Copy link
Owner

如果selector为nil,这里应该是panic。

你的程序挂起是什么意思?hang住了,hang在哪里?

@WinterSweetHe
Copy link
Author

image

就是程序一直hang住在Call这里,也不panic,也不返回结果,设置断点跟进去,就是在c.selector.Select那里跑飞了

@smallnest
Copy link
Owner

image
会panic

@WinterSweetHe
Copy link
Author

好的,我在看下我的代码,thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants