comparison src/http/ngx_http_write_filter.c @ 142:cb77c084acdb

nginx-0.0.1-2003-10-09-11:00:45 import
author Igor Sysoev <igor@sysoev.ru>
date Thu, 09 Oct 2003 07:00:45 +0000
parents cd54bcbaf3b5
children 5526213be452
comparison
equal deleted inserted replaced
141:656d468f4ead 142:cb77c084acdb
128 ngx_log_debug(r->connection->log, 128 ngx_log_debug(r->connection->log,
129 "write filter: last:%d flush:%qd size:%qd" _ 129 "write filter: last:%d flush:%qd size:%qd" _
130 last _ flush _ size); 130 last _ flush _ size);
131 #endif 131 #endif
132 132
133 /* avoid the output if there is no last hunk, no flush point and 133 /*
134 size of the hunks is smaller then "buffer_output" */ 134 * avoid the output if there is no last hunk, no flush point and
135 * size of the hunks is smaller then "buffer_output"
136 */
135 137
136 if (!last && flush == 0 && size < conf->buffer_output) { 138 if (!last && flush == 0 && size < conf->buffer_output) {
137 return NGX_OK; 139 return NGX_OK;
138 } 140 }
139 141
140 if (r->connection->write->delayed) { 142 if (!r->connection->write->ready || r->connection->write->delayed) {
141 return NGX_AGAIN; 143 return NGX_AGAIN;
142 } 144 }
143 145
144 chain = ngx_write_chain(r->connection, ctx->out); 146 chain = ngx_write_chain(r->connection, ctx->out);
145 147