shreemaan-abhishek commented on code in PR #13064:
URL: https://github.com/apache/apisix/pull/13064#discussion_r2882245642
##########
apisix/plugin.lua:
##########
@@ -197,6 +197,13 @@ local function load_plugin(name, plugins_list, plugin_type)
plugin.attr = plugin_attr(name)
core.table.insert(plugins_list, plugin)
+ -- Don't initialize stream plugins in the HTTP subsystem.
+ -- The modules are loaded for schema validation (admin API),
+ -- but init/workflow_handler functions must only run in the stream
subsystem.
+ if plugin_type == PLUGIN_TYPE_STREAM and is_http then
+ return
Review Comment:
such a great catch, I have fixed it.
--
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]