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

fix: refresh addr on error #127

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HuJingKang
Copy link
Contributor

问题:配置中心使用endpoint模式时,如果nacos server切换ip,client调用会报 connect EHOSTUNREACH 的错误,但是在请求接口的catch中没有调用 updateCurrentServer 更新ip,导致client会一直拿着旧的ip请求,无法自动恢复。

修复方式:只要有错误,都调用 updateCurrentServer 更新ip。

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

Successfully merging this pull request may close these issues.

1 participant