shreemaan-abhishek commented on code in PR #12996:
URL: https://github.com/apache/apisix/pull/12996#discussion_r2796909993
##########
apisix/router.lua:
##########
@@ -87,6 +87,14 @@ function _M.http_init_worker()
router_ssl.init_worker()
_M.router_ssl = router_ssl
+ -- Initialize stream router in HTTP workers only if stream mode is enabled
+ -- This allows the Control API (which runs in HTTP workers) to access
stream routes
+ if conf and conf.apisix and conf.apisix.stream_proxy then
+ local router_stream = require("apisix.stream.router.ip_port")
+ router_stream.stream_init_worker(filter)
Review Comment:
yes this is not a major issue, there is already another instance of the same
filter being used for stream_init_worker:
https://github.com/shreemaan-abhishek/apisix/blob/67c09975055bfdec25ce3a8a24a4dc60435100f0/apisix/router.lua#L106-L107
--
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]