comparison src/http/ngx_http_request.c @ 6050:a08fad30aeac

Request body: unbuffered reading. The r->request_body_no_buffering flag was introduced. It instructs client request body reading code to avoid reading the whole body, and to call post_handler early instead. The caller should use the ngx_http_read_unbuffered_request_body() function to read remaining parts of the body. Upstream module is now able to use this mode, if configured with the proxy_request_buffering directive.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 23 Mar 2015 21:09:19 +0300
parents 5b549cc7f698
children 4dc8e7b62216 5ae5142d39a3
comparison
equal deleted inserted replaced
6049:42d9beeb22db 6050:a08fad30aeac
2523 2523
2524 ngx_http_close_request(r, 0); 2524 ngx_http_close_request(r, 0);
2525 return; 2525 return;
2526 } 2526 }
2527 2527
2528 if (r->reading_body) {
2529 r->keepalive = 0;
2530 r->lingering_close = 1;
2531 }
2532
2528 if (!ngx_terminate 2533 if (!ngx_terminate
2529 && !ngx_exiting 2534 && !ngx_exiting
2530 && r->keepalive 2535 && r->keepalive
2531 && clcf->keepalive_timeout > 0) 2536 && clcf->keepalive_timeout > 0)
2532 { 2537 {