You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "Baoyuantop (via GitHub)" <gi...@apache.org> on 2026/03/12 05:46:16 UTC
Re: [I] max_body_size check failed in nginx when a handler has read request body in access phase [apisix]
Baoyuantop commented on issue #10379:
URL: https://github.com/apache/apisix/issues/10379#issuecomment-4044146865
APISIX's client-control plugin sets `max_body_size` only during the `access_by_lua` phase (using the `_M.rewrite` function). However, third-party Nginx modules might call `ngx_http_read_client_request_body` to read the request body at an earlier stage (such as during the C module's handling in the access phase). In this case, `max_body_size` is still the default value of 0 (unrestricted), causing large request bodies to be allowed to pass.
--
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: notifications-unsubscribe@apisix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org