comparison src/http/ngx_http_event.c @ 41:59e7c7f30d49

nginx-0.0.1-2002-12-26-19:26:23 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 26 Dec 2002 16:26:23 +0000
parents 83fa61cd3d2f
children 0e81ac0bb3e2
comparison
equal deleted inserted replaced
40:d5d4f3bba6f0 41:59e7c7f30d49
175 r->header_in = c->buffer; 175 r->header_in = c->buffer;
176 176
177 ngx_test_null(r->pool, ngx_create_pool(srv->request_pool_size, ev->log), 177 ngx_test_null(r->pool, ngx_create_pool(srv->request_pool_size, ev->log),
178 ngx_http_close_request(r)); 178 ngx_http_close_request(r));
179 179
180 ngx_test_null(r->ctx, ngx_pcalloc(r->pool, sizeof(void *) * ngx_max_module), 180 ngx_test_null(r->ctx,
181 ngx_pcalloc(r->pool, sizeof(void *) * ngx_http_max_module),
181 ngx_http_close_request(r)); 182 ngx_http_close_request(r));
182 183
183 r->headers_out.headers = ngx_create_table(r->pool, 10); 184 r->headers_out.headers = ngx_create_table(r->pool, 10);
184 r->headers_out.content_length = -1; 185 r->headers_out.content_length = -1;
185 r->headers_out.last_modified_time = -1; 186 r->headers_out.last_modified_time = -1;
517 518
518 if (rc == NGX_AGAIN) { 519 if (rc == NGX_AGAIN) {
519 520
520 if (c->sent > 0) { 521 if (c->sent > 0) {
521 conf = (ngx_http_core_loc_conf_t *) 522 conf = (ngx_http_core_loc_conf_t *)
522 ngx_get_module_loc_conf(r->main ? r->main : r, 523 ngx_http_get_module_loc_conf(r->main ? r->main : r,
523 ngx_http_core_module); 524 ngx_http_core_module_ctx);
524 525
525 timeout = (ngx_msec_t) (c->sent * conf->send_timeout); 526 timeout = (ngx_msec_t) (c->sent * conf->send_timeout);
526 527
527 ngx_log_debug(ev->log, "sent: " QD_FMT _ c->sent); 528 ngx_log_debug(ev->log, "sent: " QD_FMT _ c->sent);
528 ngx_log_debug(ev->log, "timeout: %d" _ timeout); 529 ngx_log_debug(ev->log, "timeout: %d" _ timeout);