summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_event.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2002-12-26 16:26:23 +0000
committerIgor Sysoev <igor@sysoev.ru>2002-12-26 16:26:23 +0000
commit207ed5a589055899a5841d1a9f3074fc4ff407c5 (patch)
tree69cb0a8bafe1997089f3faba616fd6f3f3abe50a /src/http/ngx_http_event.c
parent960ffa42cb161b3769cde9bbf2212092e751dfab (diff)
downloadnginx-207ed5a589055899a5841d1a9f3074fc4ff407c5.tar.gz
nginx-207ed5a589055899a5841d1a9f3074fc4ff407c5.tar.bz2
nginx-0.0.1-2002-12-26-19:26:23 import
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_event.c7
1 files changed, 4 insertions, 3 deletions
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);