comparison src/http/ngx_http_postpone_filter_module.c @ 334:42974b9e97b5 NGINX_0_5_37

nginx 0.5.37 *) Bugfix: if sub_filter and SSI were used together, then responses might were transferred incorrectly. *) Bugfix: large SSI inclusions might be truncated. *) Bugfix: worker processes might not catch reconfiguration and log rotation signals. *) Bugfix: nginx could not be built on latest Fedora 9 Linux. Thanks to Roxis. *) Bugfix: a segmentation fault might occur in worker process on Linux, if keepalive was enabled. *) Bugfix: an alert "sendmsg() failed (9: Bad file descriptor)" on some 64-bit platforms while reconfiguration.
author Igor Sysoev <http://sysoev.ru>
date Mon, 07 Jul 2008 00:00:00 +0400
parents 38e7b94d63ac
children
comparison
equal deleted inserted replaced
333:30e294abe0ca 334:42974b9e97b5
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)