comparison src/http/ngx_http_request.c @ 176:c0552e5ab567

nginx-0.0.1-2003-11-09-23:03:38 import; separate building
author Igor Sysoev <igor@sysoev.ru>
date Sun, 09 Nov 2003 20:03:38 +0000
parents edf29bb717da
children c966c09be66b
comparison
equal deleted inserted replaced
175:e92c2c647c57 176:c0552e5ab567
223 if (!(r->pool = ngx_create_pool(cscf->request_pool_size, c->log))) { 223 if (!(r->pool = ngx_create_pool(cscf->request_pool_size, c->log))) {
224 ngx_http_close_connection(c); 224 ngx_http_close_connection(c);
225 return; 225 return;
226 } 226 }
227 227
228 /* TODO: ngx_init_table */
228 if (!(r->headers_out.headers = ngx_create_table(r->pool, 20))) { 229 if (!(r->headers_out.headers = ngx_create_table(r->pool, 20))) {
229 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR); 230 ngx_http_close_request(r, NGX_HTTP_INTERNAL_SERVER_ERROR);
230 ngx_http_close_connection(c); 231 ngx_http_close_connection(c);
231 return; 232 return;
232 } 233 }
414 } 415 }
415 416
416 lctx = c->log->data; 417 lctx = c->log->data;
417 lctx->action = "reading client request headers"; 418 lctx->action = "reading client request headers";
418 lctx->url = r->unparsed_uri.data; 419 lctx->url = r->unparsed_uri.data;
420 /* TODO: ngx_init_table */
419 r->headers_in.headers = ngx_create_table(r->pool, 20); 421 r->headers_in.headers = ngx_create_table(r->pool, 20);
420 422
421 if (cscf->large_client_header 423 if (cscf->large_client_header
422 && r->header_in->pos == r->header_in->last) 424 && r->header_in->pos == r->header_in->last)
423 { 425 {
1066 1068
1067 h = c->buffer; 1069 h = c->buffer;
1068 1070
1069 if (h->pos < h->last) { 1071 if (h->pos < h->last) {
1070 1072
1071 /* Pipelined request. 1073 /*
1074 * Pipelined request.
1072 * 1075 *
1073 * We do not know here whether a pipelined request is complete 1076 * We do not know here whether a pipelined request is complete
1074 * so if the large client headers are not enabled 1077 * so if the large client headers are not enabled
1075 * we need to copy the data to the start of c->buffer. 1078 * we need to copy the data to the start of c->buffer.
1076 * This copy should be rare because clients that support 1079 * This copy should be rare because clients that support