nic-6443 commented on code in PR #13466: URL: https://github.com/apache/apisix/pull/13466#discussion_r3352918899
########## apisix/plugins/ai-proxy-multi.lua: ########## @@ -500,6 +500,11 @@ local function pick_ai_instance(ctx, conf, ups_tab) end function _M.access(conf, ctx) + local _, body_err = core.request.get_body(conf.max_req_body_size) Review Comment: This is an unnecessary body read performed solely to check the size. However, reading the body consumes performance, resulting in some resource waste. -- 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]
