Mercurial > hg > nginx
comparison src/http/ngx_http_postpone_filter_module.c @ 597:9262f520ce21 release-0.3.20
nginx-0.3.20-RELEASE import
*) Bugfix: in SSI handling.
*) Bugfix: the ngx_http_memcached_module did not support the keys in
the "/usr?args" form.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 11 Jan 2006 15:26:57 +0000 |
parents | ebc68d8ca496 |
children | 5e8fb59c18c1 |
comparison
equal
deleted
inserted
replaced
596:0381e6d3aa70 | 597:9262f520ce21 |
---|---|
94 } | 94 } |
95 } | 95 } |
96 | 96 |
97 if (r->postponed) { | 97 if (r->postponed) { |
98 out = r->postponed->out; | 98 out = r->postponed->out; |
99 r->postponed = r->postponed->next; | 99 if (out) { |
100 r->postponed = r->postponed->next; | |
101 } | |
100 | 102 |
101 } else { | 103 } else { |
102 out = in; | 104 out = in; |
103 } | 105 } |
104 | 106 |
105 rc = NGX_OK; | 107 rc = NGX_OK; |
106 | 108 |
107 if (out || r->main->out || r->main->connection->buffered) { | 109 if (out |
110 || (r->connection->buffered | |
111 & (NGX_HTTP_LOWLEVEL_BUFFERED|NGX_LOWLEVEL_BUFFERED))) | |
112 { | |
108 | 113 |
109 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 114 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
110 "http postpone filter out \"%V?%V\"", &r->uri, &r->args); | 115 "http postpone filter out \"%V?%V\"", &r->uri, &r->args); |
111 | 116 |
112 if (!(out && out->next == NULL && ngx_buf_sync_only(out->buf))) { | 117 if (!(out && out->next == NULL && ngx_buf_sync_only(out->buf))) { |
168 | 173 |
169 r->postponed = r->postponed->next; | 174 r->postponed = r->postponed->next; |
170 pr = r->postponed; | 175 pr = r->postponed; |
171 } | 176 } |
172 | 177 |
178 if (pr == NULL) { | |
179 return NGX_OK; | |
180 } | |
181 | |
173 out = pr->out; | 182 out = pr->out; |
174 | 183 |
175 if (out) { | 184 if (out) { |
176 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 185 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
177 "http postpone filter out postponed \"%V?%V\"", | 186 "http postpone filter out postponed \"%V?%V\"", |