comparison src/http/ngx_http_write_filter.c @ 45:f1ee46c036a4

nginx-0.0.1-2003-01-10-09:09:20 import
author Igor Sysoev <igor@sysoev.ru>
date Fri, 10 Jan 2003 06:09:20 +0000
parents 0e81ac0bb3e2
children 27b628ef907e
comparison
equal deleted inserted replaced
44:0e81ac0bb3e2 45:f1ee46c036a4
64 ngx_http_write_filter_conf_t *conf; 64 ngx_http_write_filter_conf_t *conf;
65 65
66 66
67 ctx = (ngx_http_write_filter_ctx_t *) 67 ctx = (ngx_http_write_filter_ctx_t *)
68 ngx_http_get_module_ctx(r->main ? r->main : r, 68 ngx_http_get_module_ctx(r->main ? r->main : r,
69 ngx_http_write_filter_module_ctx); 69 ngx_http_write_filter_module);
70 if (ctx == NULL) { 70 if (ctx == NULL) {
71 ngx_http_create_ctx(r, ctx, 71 ngx_http_create_ctx(r, ctx, ngx_http_write_filter_module,
72 ngx_http_write_filter_module_ctx,
73 sizeof(ngx_http_write_filter_ctx_t)); 72 sizeof(ngx_http_write_filter_ctx_t));
74 } 73 }
75 74
76 size = flush = 0; 75 size = flush = 0;
77 last = 0; 76 last = 0;
124 } 123 }
125 } 124 }
126 125
127 conf = (ngx_http_write_filter_conf_t *) 126 conf = (ngx_http_write_filter_conf_t *)
128 ngx_http_get_module_loc_conf(r->main ? r->main : r, 127 ngx_http_get_module_loc_conf(r->main ? r->main : r,
129 ngx_http_write_filter_module_ctx); 128 ngx_http_write_filter_module);
130 129
131 #if (NGX_DEBUG_WRITE_FILTER) 130 #if (NGX_DEBUG_WRITE_FILTER)
132 ngx_log_debug(r->connection->log, "write filter: last:%d flush:%d" _ 131 ngx_log_debug(r->connection->log, "write filter: last:%d flush:%d" _
133 last _ flush); 132 last _ flush);
134 #endif 133 #endif