comparison src/http/ngx_http_write_filter.c @ 103:6dfda4cf5200

nginx-0.0.1-2003-06-11-19:28:34 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 11 Jun 2003 15:28:34 +0000
parents a059e1aa65d4
children 152567c11325
comparison
equal deleted inserted replaced
102:7e86d028d8f0 103:6dfda4cf5200
1 1
2 #include <ngx_config.h> 2 #include <ngx_config.h>
3 #include <ngx_core.h> 3 #include <ngx_core.h>
4 #include <ngx_event.h>
4 #include <ngx_http.h> 5 #include <ngx_http.h>
5 6
6 7
7 typedef struct { 8 typedef struct {
8 size_t buffer_output; 9 ssize_t buffer_output;
9 } ngx_http_write_filter_conf_t; 10 } ngx_http_write_filter_conf_t;
10 11
11 12
12 typedef struct { 13 typedef struct {
13 ngx_chain_t *out; 14 ngx_chain_t *out;
137 138
138 if (r->connection->write->delayed) { 139 if (r->connection->write->delayed) {
139 return NGX_AGAIN; 140 return NGX_AGAIN;
140 } 141 }
141 142
142 #if 1
143 chain = ngx_write_chain(r->connection, ctx->out); 143 chain = ngx_write_chain(r->connection, ctx->out);
144 #else
145 chain = ngx_write_chain(r->connection, ctx->out, flush);
146 #endif
147 144
148 #if (NGX_DEBUG_WRITE_FILTER) 145 #if (NGX_DEBUG_WRITE_FILTER)
149 ngx_log_debug(r->connection->log, "write filter %x" _ chain); 146 ngx_log_debug(r->connection->log, "write filter %x" _ chain);
150 #endif 147 #endif
151 148