Mercurial > hg > nginx-quic
changeset 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 | 9039e845e532 |
files | src/http/ngx_http_upstream.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -569,8 +569,11 @@ ngx_http_upstream_connect(ngx_http_reque } } - if (r->request_body && r->request_body->temp_file && r == r->main) { - + if (r->request_body + && r->request_body->buf + && r->request_body->temp_file + && r == r->main) + { /* * the r->request_body->buf can be reused for one request only, * the subrequests should allocate their own temporay bufs