comparison src/http/ngx_http_request_body.c @ 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
comparison
equal deleted inserted replaced
7738:554c6ae25ffc 7739:4d5b04daeaff
302 return NGX_HTTP_INTERNAL_SERVER_ERROR; 302 return NGX_HTTP_INTERNAL_SERVER_ERROR;
303 } 303 }
304 304
305 return NGX_AGAIN; 305 return NGX_AGAIN;
306 } 306 }
307
308 ngx_log_error(NGX_LOG_ALERT, c->log, 0,
309 "busy buffers after request body flush");
307 310
308 return NGX_HTTP_INTERNAL_SERVER_ERROR; 311 return NGX_HTTP_INTERNAL_SERVER_ERROR;
309 } 312 }
310 313
311 rb->buf->pos = rb->buf->start; 314 rb->buf->pos = rb->buf->start;