starsz commented on a change in pull request #4549:
URL: https://github.com/apache/apisix/pull/4549#discussion_r669230828
##########
File path: apisix/balancer.lua
##########
@@ -308,15 +309,24 @@ function _M.run(route, ctx)
return core.response.exit(502)
end
+ plugin_funcs("balancer")
+
local pass_host = ctx.pass_host
if pass_host == "node" and balancer.recreate_request then
local host = server.domain or server.host
if host ~= ctx.var.upstream_host then
-- retried node has a different host
ctx.var.upstream_host = host
- balancer.recreate_request()
+ header_changed = true
end
end
+
+ end
+
+ local _, run = plugin_funcs("balancer")
Review comment:
We will return balancer twice?
Line 312 and line 326 ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]