Mercurial > hg > nginx-vendor-current
comparison src/core/ngx_output_chain.c @ 602:c5122335e41d NGINX_0_8_53
nginx 0.8.53
*) Feature: now the "error_page" directive allows to change a status
code in a redirect.
*) Feature: the "gzip_disable" directive supports special "degradation"
mask.
*) Bugfix: a socket leak might occurred if file AIO was used.
Thanks to Maxim Dounin.
*) Bugfix: if the first server had no "listen" directive and there was
no explicit default server, then a next server with a "listen"
directive became the default server; the bug had appeared in 0.8.21.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 18 Oct 2010 00:00:00 +0400 |
parents | 8246d8a2c2be |
children | eb208e0cf44d |
comparison
equal
deleted
inserted
replaced
601:b2afd36d87f4 | 602:c5122335e41d |
---|---|
72 if (ngx_output_chain_add_copy(ctx->pool, &ctx->in, in) == NGX_ERROR) { | 72 if (ngx_output_chain_add_copy(ctx->pool, &ctx->in, in) == NGX_ERROR) { |
73 return NGX_ERROR; | 73 return NGX_ERROR; |
74 } | 74 } |
75 } | 75 } |
76 | 76 |
77 #if (NGX_HAVE_FILE_AIO) | |
78 if (ctx->aio) { | |
79 return NGX_AGAIN; | |
80 } | |
81 #endif | |
82 | |
83 out = NULL; | 77 out = NULL; |
84 last_out = &out; | 78 last_out = &out; |
85 last = NGX_NONE; | 79 last = NGX_NONE; |
86 | 80 |
87 for ( ;; ) { | 81 for ( ;; ) { |
82 | |
83 #if (NGX_HAVE_FILE_AIO) | |
84 if (ctx->aio) { | |
85 return NGX_AGAIN; | |
86 } | |
87 #endif | |
88 | 88 |
89 while (ctx->in) { | 89 while (ctx->in) { |
90 | 90 |
91 /* | 91 /* |
92 * cycle while there are the ctx->in bufs | 92 * cycle while there are the ctx->in bufs |