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

clear hosts.cache if large invalid peer nodes. #271

Closed
betachen opened this Issue Mar 15, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@betachen
Copy link
Member

commented Mar 15, 2018

clear hosts.cache if large invalid peer nodes.

chengzhpchn added a commit that referenced this issue Apr 23, 2018

@chengzhpchn

This comment has been minimized.

Copy link
Contributor

commented Jun 5, 2018

当满足如下条件时:
1)检测到当前outbound_session数目减少到1;
2)经过1分钟后,outbound_session数目仍然<=1.
则触发自动重连种子节点,并重新获取网络IP地址列表。
为避免无法从种子节点获取网络IP地址列表失败或者出现异常,要求重新取到的IP地址数目超过种子节点数时,才会将新获取到的网络IP地址列表,替换本地hosts.cache中保存的网络IP地址列表。

@betachen betachen closed this Jun 5, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.