comparison src/http/ngx_http_upstream.c @ 1064:7c84c877f2d7

fix segfault when client_body_in_file_only is on, the body is not passed to upstream, and nginx tries next upstream
author Igor Sysoev <igor@sysoev.ru>
date Fri, 19 Jan 2007 12:57:02 +0000
parents e2a6ecc5a3ae
children aed9dfe2a4f2
comparison
equal deleted inserted replaced
1063:e2a6ecc5a3ae 1064:7c84c877f2d7
567 NGX_HTTP_INTERNAL_SERVER_ERROR); 567 NGX_HTTP_INTERNAL_SERVER_ERROR);
568 return; 568 return;
569 } 569 }
570 } 570 }
571 571
572 if (r->request_body && r->request_body->temp_file && r == r->main) { 572 if (r->request_body
573 573 && r->request_body->buf
574 && r->request_body->temp_file
575 && r == r->main)
576 {
574 /* 577 /*
575 * the r->request_body->buf can be reused for one request only, 578 * the r->request_body->buf can be reused for one request only,
576 * the subrequests should allocate their own temporay bufs 579 * the subrequests should allocate their own temporay bufs
577 */ 580 */
578 581