Mercurial > hg > nginx-ranges
comparison src/http/ngx_http_postpone_filter_module.c @ 384:12defd37f578 NGINX_0_7_4
nginx 0.7.4
*) Feature: variables support in the "access_log" directive.
*) Feature: the "open_log_file_cache" directive.
*) Feature: the -g switch.
*) Feature: the "Expect" request header line support.
*) Bugfix: large SSI inclusions might be truncated.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 30 Jun 2008 00:00:00 +0400 |
parents | 38e7b94d63ac |
children | cdd5890b5538 b4f69f2ef02c |
comparison
equal
deleted
inserted
replaced
383:6ee3ada01457 | 384:12defd37f578 |
---|---|
166 | 166 |
167 for ( ;; ) { | 167 for ( ;; ) { |
168 pr = r->postponed; | 168 pr = r->postponed; |
169 | 169 |
170 if (pr == NULL) { | 170 if (pr == NULL) { |
171 return NGX_OK; | 171 break; |
172 } | 172 } |
173 | 173 |
174 if (pr->request) { | 174 if (pr->request) { |
175 | 175 |
176 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 176 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
194 r->postponed = r->postponed->next; | 194 r->postponed = r->postponed->next; |
195 pr = r->postponed; | 195 pr = r->postponed; |
196 } | 196 } |
197 | 197 |
198 if (pr == NULL) { | 198 if (pr == NULL) { |
199 return NGX_OK; | 199 break; |
200 } | 200 } |
201 | 201 |
202 out = pr->out; | 202 out = pr->out; |
203 | 203 |
204 if (out) { | 204 if (out) { |
213 } | 213 } |
214 } | 214 } |
215 | 215 |
216 r->postponed = r->postponed->next; | 216 r->postponed = r->postponed->next; |
217 } | 217 } |
218 | |
219 if (r->out) { | |
220 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | |
221 "http postpone filter out again \"%V?%V\"", | |
222 &r->uri, &r->args); | |
223 | |
224 r->connection->data = r; | |
225 return NGX_AGAIN; | |
226 } | |
227 | |
228 return NGX_OK; | |
218 } | 229 } |
219 | 230 |
220 | 231 |
221 static ngx_int_t | 232 static ngx_int_t |
222 ngx_http_postpone_filter_init(ngx_conf_t *cf) | 233 ngx_http_postpone_filter_init(ngx_conf_t *cf) |