Baoyuantop commented on issue #12869: URL: https://github.com/apache/apisix/issues/12869#issuecomment-3727730887
This is not a bug in APISIX, but rather a limitation of the OpenResty underlying implementation. The cosocket API is disabled in the following nginx Lua stages: - header_filter_by_lua* - body_filter_by_lua* - log_by_lua* (partially restricted) If you absolutely need to process Redis during the response phase, you can use `ngx.timer.at(0, ...)` to create a timer to perform Redis operations in the background (but this means the results cannot be synchronously returned to the client). You can refer to https://github.com/apache/apisix/blob/master/apisix/plugins/limit-conn/limit-conn-redis.lua -- 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]
