ctx->prev = 0;
}
- if (ctx->pos == ctx->buf->last) {
- ctx->prev = ctx->buf->last - ctx->last;
- }
-
if (!(hunk = ngx_calloc_hunk(r->pool))) {
return NGX_ERROR;
}
*ctx->last_out = cl;
ctx->last_out = &cl->next;
+ if (ctx->pos == ctx->buf->last) {
+ ctx->prev = ctx->buf->last - ctx->last;
+ }
+
continue;
#if 0
ctx->last_out = &cl->next;
}
}
+
+ ctx->buf = NULL;
}
if (ctx->out) {
}
ctx->out = NULL;
+ ctx->last_out = &ctx->out;
while (ctx->busy) {
if (ngx_hunk_size(ctx->busy->hunk) != 0) {