You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/07/14 02:52:35 UTC
[GitHub] [apisix] spacewander commented on a change in pull request #4549: feat: enable balancer phase for plugins
spacewander commented on a change in pull request #4549:
URL: https://github.com/apache/apisix/pull/4549#discussion_r669242229
##########
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:
Fixed in the new commit
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org