From: Maxim Dounin Date: Mon, 9 Nov 2020 19:40:53 +0000 (+0300) Subject: Request body: improved logging. X-Git-Tag: release-1.19.5~8 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=8ed303c055ee003285231b6d781bfe2dd9c0d3d1;p=nginx.git 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 index f3b938382..07e78d780 100644 --- 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_http_request_t *r) return NGX_AGAIN; } + ngx_log_error(NGX_LOG_ALERT, c->log, 0, + "busy buffers after request body flush"); + return NGX_HTTP_INTERNAL_SERVER_ERROR; }