Mercurial > hg > nginx
changeset 7739:4d5b04daeaff
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 09 Nov 2020 22:40:53 +0300 |
parents | 554c6ae25ffc |
children | 967cfa6e2ff8 |
files | src/http/ngx_http_request_body.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_request_body.c Fri Nov 06 23:44:54 2020 +0300 +++ b/src/http/ngx_http_request_body.c Mon Nov 09 22:40:53 2020 +0300 @@ -305,6 +305,9 @@ return NGX_AGAIN; } + ngx_log_error(NGX_LOG_ALERT, c->log, 0, + "busy buffers after request body flush"); + return NGX_HTTP_INTERNAL_SERVER_ERROR; }