comparison src/http/modules/proxy/ngx_http_proxy_upstream.c @ 303:00c5660d2707

nginx-0.0.3-2004-04-01-20:20:53 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 01 Apr 2004 16:20:53 +0000
parents 4a3f18406832
children bcbe876f4262
comparison
equal deleted inserted replaced
302:1526e7686b20 303:00c5660d2707
84 tf->path = p->lcf->temp_path; 84 tf->path = p->lcf->temp_path;
85 tf->pool = r->pool; 85 tf->pool = r->pool;
86 tf->warn = "a client request body is buffered to a temporary file"; 86 tf->warn = "a client request body is buffered to a temporary file";
87 /* tf->persistent = 0; */ 87 /* tf->persistent = 0; */
88 88
89 rb->buf_size = p->lcf->request_buffer_size;
90 rb->handler = ngx_http_proxy_init_upstream; 89 rb->handler = ngx_http_proxy_init_upstream;
91 rb->data = p; 90 rb->data = p;
92 /* rb->bufs = NULL; */ 91 /* rb->bufs = NULL; */
93 /* rb->buf = NULL; */ 92 /* rb->buf = NULL; */
94 /* rb->rest = 0; */ 93 /* rb->rest = 0; */
1177 1176
1178 ep->temp_file->file.fd = NGX_INVALID_FILE; 1177 ep->temp_file->file.fd = NGX_INVALID_FILE;
1179 ep->temp_file->file.log = r->connection->log; 1178 ep->temp_file->file.log = r->connection->log;
1180 ep->temp_file->path = p->lcf->temp_path; 1179 ep->temp_file->path = p->lcf->temp_path;
1181 ep->temp_file->pool = r->pool; 1180 ep->temp_file->pool = r->pool;
1182 if (!p->cachable) { 1181
1182 if (p->cachable) {
1183 ep->temp_file->persistent = 1;
1184 } else {
1183 ep->temp_file->warn = "an upstream response is buffered " 1185 ep->temp_file->warn = "an upstream response is buffered "
1184 "to a temporary file"; 1186 "to a temporary file";
1185 } 1187 }
1186 1188
1187 ep->max_temp_file_size = p->lcf->max_temp_file_size; 1189 ep->max_temp_file_size = p->lcf->max_temp_file_size;