# HG changeset patch # User Maxim Dounin # Date 1604950853 -10800 # Node ID 4d5b04daeaffb3682a9f871fd8850dd1aabdba9a # Parent 554c6ae25ffc634e29adae8b51bef6ddabebea39 Request body: improved logging. Added logging before returning NGX_HTTP_INTERNAL_SERVER_ERROR if there are busy buffers after a request body flush. This should never happen with current code, though bugs can be introduced by 3rd party modules. Make sure debugging will be easy enough. diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -305,6 +305,9 @@ ngx_http_do_read_client_request_body(ngx return NGX_AGAIN; } + ngx_log_error(NGX_LOG_ALERT, c->log, 0, + "busy buffers after request body flush"); + return NGX_HTTP_INTERNAL_SERVER_ERROR; }