From 207ed5a589055899a5841d1a9f3074fc4ff407c5 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 26 Dec 2002 16:26:23 +0000 Subject: nginx-0.0.1-2002-12-26-19:26:23 import --- src/http/ngx_http_event.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/http/ngx_http_event.c') diff --git a/src/http/ngx_http_event.c b/src/http/ngx_http_event.c index 158767014..b2f587657 100644 --- a/src/http/ngx_http_event.c +++ b/src/http/ngx_http_event.c @@ -177,7 +177,8 @@ static int ngx_http_init_request(ngx_event_t *ev) ngx_test_null(r->pool, ngx_create_pool(srv->request_pool_size, ev->log), ngx_http_close_request(r)); - ngx_test_null(r->ctx, ngx_pcalloc(r->pool, sizeof(void *) * ngx_max_module), + ngx_test_null(r->ctx, + ngx_pcalloc(r->pool, sizeof(void *) * ngx_http_max_module), ngx_http_close_request(r)); r->headers_out.headers = ngx_create_table(r->pool, 10); @@ -519,8 +520,8 @@ static int ngx_http_writer(ngx_event_t *ev) if (c->sent > 0) { conf = (ngx_http_core_loc_conf_t *) - ngx_get_module_loc_conf(r->main ? r->main : r, - ngx_http_core_module); + ngx_http_get_module_loc_conf(r->main ? r->main : r, + ngx_http_core_module_ctx); timeout = (ngx_msec_t) (c->sent * conf->send_timeout); -- cgit