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

当进程支持的fd配置较小时造成listenport 被关闭,并且不在尝试监听 #208

Open
baimushan opened this issue Sep 14, 2017 · 1 comment

Comments

@baimushan
Copy link

rpc_listener.h 中_is_closed(false)初始化为false
在调用start_listen时,可能没有监听成功,但是没有把状态设置为_is_closed=ture,
在RpcServerImpl::TimerMaintain中认为_listener->is_closed()为false,不再发起重连操作

@qinzuoyan
Copy link
Collaborator

qinzuoyan commented Sep 14, 2017

谢谢反馈。
但是代码中 _is_closed 初始化为true: https://github.com/baidu/sofa-pbrpc/blob/master/src/sofa/pbrpc/rpc_listener.h#L35

你是怎么发现不再尝试发起重连的?是否可以提供复现场景?

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