Mercurial > hg > nginx
diff src/http/ngx_http_write_filter.c @ 63:36d2c25cc9bb
nginx-0.0.1-2003-02-26-23:21:43 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 26 Feb 2003 20:21:43 +0000 |
parents | 4f3e2abcc2c4 |
children | 5a7d1aaa1618 |
line wrap: on
line diff
--- a/src/http/ngx_http_write_filter.c +++ b/src/http/ngx_http_write_filter.c @@ -4,6 +4,7 @@ #include <ngx_core.h> #include <ngx_hunk.h> #include <ngx_conf_file.h> +#include <ngx_connection.h> #include <ngx_event_write.h> @@ -81,7 +82,7 @@ int ngx_http_write_filter(ngx_http_reque le = &ce->next; size += ce->hunk->last.file - ce->hunk->pos.file; -#if (NGX_DEBUG_WRITE_FILTER0) +#if (NGX_DEBUG_WRITE_FILTER) ngx_log_debug(r->connection->log, "write filter: old chunk: %x " QX_FMT " " QD_FMT _ ce->hunk->type _ ce->hunk->pos.file _ @@ -107,7 +108,7 @@ int ngx_http_write_filter(ngx_http_reque le = &ce->next; size += ce->hunk->last.file - ce->hunk->pos.file; -#if (NGX_DEBUG_WRITE_FILTER0) +#if (NGX_DEBUG_WRITE_FILTER) ngx_log_debug(r->connection->log, "write filter: new hunk: %x " QX_FMT " " QD_FMT _ ce->hunk->type _ ce->hunk->pos.file _ @@ -127,7 +128,7 @@ int ngx_http_write_filter(ngx_http_reque ngx_http_get_module_loc_conf(r->main ? r->main : r, ngx_http_write_filter_module); -#if (NGX_DEBUG_WRITE_FILTER0) +#if (NGX_DEBUG_WRITE_FILTER) ngx_log_debug(r->connection->log, "write filter: last:%d flush:%d" _ last _ flush); #endif @@ -138,7 +139,7 @@ int ngx_http_write_filter(ngx_http_reque return NGX_OK; } - chain = ngx_event_write(r->connection, ctx->out, flush); + chain = ngx_write_chain(r->connection, ctx->out, flush); #if (NGX_DEBUG_WRITE_FILTER) ngx_log_debug(r->connection->log, "write filter %x" _ chain);