diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2002-08-23 16:14:30 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2002-08-23 16:14:30 +0000 |
| commit | 83661a922b26d84230ae0cc39f161323797cbb6c (patch) | |
| tree | 398a4b6abb78847564a4e8425ff5122c6c2a1ce5 /src/http | |
| parent | 4e5e1171085a2235863baf7dddbd1477f817ae58 (diff) | |
| download | nginx-83661a922b26d84230ae0cc39f161323797cbb6c.tar.gz nginx-83661a922b26d84230ae0cc39f161323797cbb6c.tar.bz2 | |
nginx-0.0.1-2002-08-23-20:14:30 import
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_filter.c | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/src/http/ngx_http_filter.c b/src/http/ngx_http_filter.c index 5eb6b4597..abb91de50 100644 --- 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 *dst, ngx_hunk_t *src, ngx_log_t *log) 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 *dst, ngx_hunk_t *src, ngx_log_t *log) 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); - } -} |
