Mercurial > hg > nginx
comparison src/http/ngx_http_output_filter.c @ 23:f540a63026c9
nginx-0.0.1-2002-12-06-19:32:33 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 06 Dec 2002 16:32:33 +0000 |
parents | d7908993fdeb |
children | 77c7629a2627 |
comparison
equal
deleted
inserted
replaced
22:aa3b53e74728 | 23:f540a63026c9 |
---|---|
124 for (ce = ctx->in; ce; ce = ce->next) { | 124 for (ce = ctx->in; ce; ce = ce->next) { |
125 if (ce->hunk->pos.file == ce->hunk->last.file) | 125 if (ce->hunk->pos.file == ce->hunk->last.file) |
126 ctx->in = ce->next; | 126 ctx->in = ce->next; |
127 } | 127 } |
128 | 128 |
129 if (rc == NGX_OK) | 129 if (rc == NGX_OK && ctx->hunk) |
130 ctx->hunk->pos.mem = ctx->hunk->last.mem = ctx->hunk->start; | 130 ctx->hunk->pos.mem = ctx->hunk->last.mem = ctx->hunk->start; |
131 else | 131 else |
132 return rc; | 132 return rc; |
133 | 133 |
134 /* input chain is empty */ | 134 /* input chain is empty */ |
216 | 216 |
217 if (rc == NGX_OK && ctx->last) | 217 if (rc == NGX_OK && ctx->last) |
218 return NGX_OK; | 218 return NGX_OK; |
219 | 219 |
220 if (rc == NGX_OK) { | 220 if (rc == NGX_OK) { |
221 ctx->hunk->pos.mem = ctx->hunk->last.mem = ctx->hunk->start; | 221 if (ctx->hunk) |
222 ctx->hunk->pos.mem = ctx->hunk->last.mem = ctx->hunk->start; | |
222 #if level_event | 223 #if level_event |
223 ngx_del_event(r->connection->write, NGX_WRITE_EVENT); | 224 ngx_del_event(r->connection->write, NGX_WRITE_EVENT); |
224 #endif | 225 #endif |
225 } | 226 } |
226 | 227 |