Current Behavior
|
elseif key == "filter_fun"then |
|
route_flags["filter_fun"] = true |
filter_fun should be filter_func
If filter_func is enabled on the route and other conditions are met for the ai plugin to be enabled, the route matches are cached instead of filter_func.
|
elseif k == "keepalive" then |
|
route_up_flags["keepalive"] = true |
keepalive should be keepalive_pool
This will cause the keepalive_pool configured in upstream to not take effect, using the default keepalive_pool configuration.
Expected Behavior
null
Error Logs
null
Steps to Reproduce
null
Environment
- APISIX version (run
apisix version): master
- Operating system (run
uname -a):
- OpenResty / Nginx version (run
openresty -V or nginx -V):
- etcd version, if relevant (run
curl http://127.0.0.1:9090/v1/server_info):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run
luarocks --version):
Current Behavior
apisix/apisix/plugins/ai.lua
Lines 174 to 175 in f120076
filter_funshould befilter_funcIf
filter_funcis enabled on the route and other conditions are met for the ai plugin to be enabled, the route matches are cached instead offilter_func.apisix/apisix/plugins/ai.lua
Lines 215 to 216 in f120076
keepaliveshould bekeepalive_poolThis will cause the
keepalive_poolconfigured in upstream to not take effect, using the defaultkeepalive_poolconfiguration.Expected Behavior
null
Error Logs
null
Steps to Reproduce
null
Environment
apisix version): masteruname -a):openresty -Vornginx -V):curl http://127.0.0.1:9090/v1/server_info):luarocks --version):