Mercurial > hg > nginx
comparison src/http/modules/proxy/ngx_http_proxy_upstream.c @ 187:5a9bbe99008b
nginx-0.0.1-2003-11-17-19:15:03 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 17 Nov 2003 16:15:03 +0000 |
parents | a8ff48d26cca |
children | 0061d1f0908d |
comparison
equal
deleted
inserted
replaced
186:c1f3a3c7c5db | 187:5a9bbe99008b |
---|---|
954 ngx_http_proxy_finalize_request(p, 0); | 954 ngx_http_proxy_finalize_request(p, 0); |
955 return; | 955 return; |
956 } | 956 } |
957 ep->preread_hunks->hunk = p->header_in; | 957 ep->preread_hunks->hunk = p->header_in; |
958 ep->preread_hunks->next = NULL; | 958 ep->preread_hunks->next = NULL; |
959 p->header_in->type |= NGX_HUNK_PREREAD; | |
960 | 959 |
961 ep->preread_size = p->header_in->last - p->header_in->pos; | 960 ep->preread_size = p->header_in->last - p->header_in->pos; |
961 | |
962 ep->hunk_to_file = ngx_calloc_hunk(r->pool); | |
963 if (ep->preread_hunks == NULL) { | |
964 ngx_http_proxy_finalize_request(p, 0); | |
965 return; | |
966 } | |
967 ep->hunk_to_file->pos = p->header_in->start; | |
968 ep->hunk_to_file->last = p->header_in->pos; | |
969 ep->hunk_to_file->type = NGX_HUNK_IN_MEMORY|NGX_HUNK_TEMP; | |
962 | 970 |
963 if (ngx_event_flags & NGX_USE_AIO_EVENT) { | 971 if (ngx_event_flags & NGX_USE_AIO_EVENT) { |
964 | 972 |
965 /* the posted aio operation can currupt shadow buf */ | 973 /* the posted aio operation can currupt shadow buf */ |
966 ep->single_buf = 1; | 974 ep->single_buf = 1; |