Mercurial > hg > nginx
diff src/http/ngx_http_filter.c @ 5:62b1a364857c
nginx-0.0.1-2002-08-23-20:14:30 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 23 Aug 2002 16:14:30 +0000 |
parents | c5f071d376e5 |
children | b5481d6fbbd4 |
line wrap: on
line diff
--- a/src/http/ngx_http_filter.c +++ b/src/http/ngx_http_filter.c @@ -209,7 +209,12 @@ int ngx_http_filter_copy_hunk(ngx_hunk_t if (n == NGX_ERROR) { ngx_log_error(NGX_LOG_ERR, log, ngx_errno, ngx_read_file_n " failed for client"); - return NGX_ERROR; + return n; + +#if (NGX_FILE_AIO) + } else if (n == NGX_AGAIN) { + return n; +#endif } else { ngx_assert((n == size), /* void */ ; , log, @@ -229,19 +234,3 @@ int ngx_http_filter_copy_hunk(ngx_hunk_t return NGX_OK; } - - - - - - /* if no hunk is passed and there is no our hunk - or our hunk is still busy then call next filter */ - if (hunk == NULL - && (ctx->hunk == NULL - || ((ctx->hunk != NULL) - && (ctx->hunk->pos.mem < ctx->hunk->last.mem)) - ) - ) - ctx->next_filter(r, NULL); - } -}