-
Notifications
You must be signed in to change notification settings - Fork 2.8k
bugfix: when service works with upstream that contains a domain name, the merged configuration should not always changing. #2322
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
Conversation
| }, | ||
| "upstream": { | ||
| "nodes": { | ||
| "www.baidu.com:80": 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems visit baidu.com unstable in github actions before?
apisix/init.lua
Outdated
| return_direct, nil) | ||
| local err | ||
| route, err = lru_resolved_domain(route, api_ctx.conf_version, | ||
| parse_domain_in_route, route, api_ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
api_ctx need to be removed ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice, will fix it later
|
@moonming this is an old bug for long time, and it seems that I need more time to fix it. |
|
ok |
… `grpc` module.
What this PR does / why we need it:
when service works with upstream that contains a domain name, the merged configuration is always changing.
if the configuration is always changing, it won't hit the LRU item, which causes some plugins to work abnormally, such as
limit-req.fix: #2320
Pre-submission checklist: