Mercurial > hg > nginx
diff src/http/ngx_http_write_filter.c @ 8:708f8bb772ec
nginx-0.0.1-2002-09-02-18:48:24 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 02 Sep 2002 14:48:24 +0000 |
parents | c5f071d376e5 |
children | 6f58641241bb |
line wrap: on
line diff
--- a/src/http/ngx_http_write_filter.c +++ b/src/http/ngx_http_write_filter.c @@ -2,9 +2,9 @@ #include <ngx_config.h> #include <ngx_hunk.h> +#include <ngx_event_write.h> #include <ngx_http.h> -#include <ngx_http_filter.h> -#include <ngx_event_write.h> +#include <ngx_http_output_filter.h> #include <ngx_http_write_filter.h> @@ -48,7 +48,7 @@ int ngx_http_write_filter(ngx_http_reque ch->hunk->type _ ch->hunk->pos.file _ ch->hunk->last.file - ch->hunk->pos.file); - if (ch->hunk->type & NGX_HUNK_FLUSH) + if (ch->hunk->type & NGX_HUNK_FLUSH|NGX_HUNK_RECYCLED) flush = size; if (ch->hunk->type & NGX_HUNK_LAST) @@ -69,7 +69,7 @@ int ngx_http_write_filter(ngx_http_reque ch->hunk->type _ ch->hunk->pos.file _ ch->hunk->last.file - ch->hunk->pos.file); - if (ch->hunk->type & NGX_HUNK_FLUSH) + if (ch->hunk->type & NGX_HUNK_FLUSH|NGX_HUNK_RECYCLED) flush = size; if (ch->hunk->type & NGX_HUNK_LAST) @@ -85,5 +85,7 @@ int ngx_http_write_filter(ngx_http_reque ctx->out = chain; + ngx_log_debug(r->connection->log, "write filter %x" _ chain); + return (chain ? NGX_AGAIN : NGX_OK); }