comparison src/http/ngx_http_core_module.c @ 64:34d647deb1da

nginx-0.0.1-2003-03-04-09:33:48 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 04 Mar 2003 06:33:48 +0000
parents 50186b49f2ad
children 5a7d1aaa1618
comparison
equal deleted inserted replaced
63:36d2c25cc9bb 64:34d647deb1da
33 {ngx_string("server"), 33 {ngx_string("server"),
34 NGX_HTTP_MAIN_CONF|NGX_CONF_BLOCK|NGX_CONF_NOARGS, 34 NGX_HTTP_MAIN_CONF|NGX_CONF_BLOCK|NGX_CONF_NOARGS,
35 ngx_server_block, 35 ngx_server_block,
36 0, 36 0,
37 0}, 37 0},
38
39 {ngx_string("post_accept_timeout"),
40 NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1,
41 ngx_conf_set_time_slot,
42 0,
43 addressof(ngx_http_post_accept_timeout)},
44
45 {ngx_string("connection_pool_size"),
46 NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1,
47 ngx_conf_set_size_slot,
48 0,
49 addressof(ngx_http_connection_pool_size)},
50
51 {ngx_string("request_pool_size"),
52 NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1,
53 ngx_conf_set_size_slot,
54 0,
55 addressof(ngx_http_request_pool_size)},
56
57 {ngx_string("client_header_timeout"),
58 NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1,
59 ngx_conf_set_time_slot,
60 0,
61 addressof(ngx_http_client_header_timeout)},
62
63 {ngx_string("client_header_buffer_size"),
64 NGX_HTTP_MAIN_CONF|NGX_CONF_TAKE1,
65 ngx_conf_set_size_slot,
66 0,
67 addressof(ngx_http_client_header_buffer_size)},
68
69 {ngx_string("large_client_header"),
70 NGX_HTTP_MAIN_CONF|NGX_CONF_FLAG,
71 ngx_conf_set_flag_slot,
72 0,
73 addressof(ngx_http_large_client_header)},
38 74
39 {ngx_string("location"), 75 {ngx_string("location"),
40 NGX_HTTP_SRV_CONF|NGX_CONF_BLOCK|NGX_CONF_TAKE1, 76 NGX_HTTP_SRV_CONF|NGX_CONF_BLOCK|NGX_CONF_TAKE1,
41 ngx_location_block, 77 ngx_location_block,
42 0, 78 0,
466 } 502 }
467 503
468 504
469 int ngx_http_close_request(ngx_http_request_t *r) 505 int ngx_http_close_request(ngx_http_request_t *r)
470 { 506 {
507 ngx_http_log_ctx_t *ctx;
508
471 ngx_log_debug(r->connection->log, "CLOSE#: %d" _ r->file.fd); 509 ngx_log_debug(r->connection->log, "CLOSE#: %d" _ r->file.fd);
472 510
473 ngx_http_log_handler(r); 511 ngx_http_log_handler(r);
474 512
475 ngx_assert((r->file.fd != NGX_INVALID_FILE), /* void */ ; , 513 ngx_assert((r->file.fd != NGX_INVALID_FILE), /* void */ ; ,
485 /* 523 /*
486 if (r->logging) 524 if (r->logging)
487 ngx_http_log_request(r); 525 ngx_http_log_request(r);
488 */ 526 */
489 527
528 ctx = (ngx_http_log_ctx_t *) r->connection->log->data;
529
530 /* ctx->url was allocated from r->pool */
531 ctx->url = NULL;
532
490 ngx_destroy_pool(r->pool); 533 ngx_destroy_pool(r->pool);
491 534
492 ngx_log_debug(r->connection->log, "http close"); 535 ngx_log_debug(r->connection->log, "http closed");
493 536
494 if (r->connection->read->timer_set) { 537 if (r->connection->read->timer_set) {
495 ngx_del_timer(r->connection->read); 538 ngx_del_timer(r->connection->read);
496 } 539 }
497 540