Mercurial > hg > nginx
comparison src/http/ngx_http_copy_filter_module.c @ 829:362d156f0278
high level HTTP buffered flags should be on per-subrequest basis,
this fix a bug in SSI when a big static file is included
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 30 Oct 2006 20:25:22 +0000 |
parents | 7e24168b0853 |
children | 05b5236c2ff5 |
comparison
equal
deleted
inserted
replaced
828:597c83dad983 | 829:362d156f0278 |
---|---|
107 r->request_output = 1; | 107 r->request_output = 1; |
108 } | 108 } |
109 | 109 |
110 rc = ngx_output_chain(ctx, in); | 110 rc = ngx_output_chain(ctx, in); |
111 | 111 |
112 if (!c->destroyed) { | |
113 | |
114 if (ctx->in == NULL) { | |
115 r->buffered &= ~NGX_HTTP_COPY_BUFFERED; | |
116 } else { | |
117 r->buffered |= NGX_HTTP_COPY_BUFFERED; | |
118 } | |
119 | |
112 #if (NGX_DEBUG) | 120 #if (NGX_DEBUG) |
113 if (!c->destroyed) { | |
114 ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, | 121 ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
115 "copy filter: %i \"%V?%V\"", rc, &r->uri, &r->args); | 122 "copy filter: %i \"%V?%V\"", rc, &r->uri, &r->args); |
123 #endif | |
124 | |
116 } | 125 } |
117 #endif | |
118 | 126 |
119 return rc; | 127 return rc; |
120 } | 128 } |
121 | 129 |
122 | 130 |