comparison src/http/ngx_http_copy_filter_module.c @ 3050:f54b02dbb12b

axe r->connection->destroyed testing
author Igor Sysoev <igor@sysoev.ru>
date Wed, 26 Aug 2009 16:14:57 +0000
parents 87b8c44906b5
children 6060225e9261
comparison
equal deleted inserted replaced
3049:67254117b774 3050:f54b02dbb12b
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) { 112 if (ctx->in == NULL) {
113 r->buffered &= ~NGX_HTTP_COPY_BUFFERED;
113 114
114 if (ctx->in == NULL) { 115 } else {
115 r->buffered &= ~NGX_HTTP_COPY_BUFFERED; 116 r->buffered |= NGX_HTTP_COPY_BUFFERED;
116 } else { 117 }
117 r->buffered |= NGX_HTTP_COPY_BUFFERED;
118 }
119 118
120 ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 119 ngx_log_debug3(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
121 "copy filter: %i \"%V?%V\"", rc, &r->uri, &r->args); 120 "copy filter: %i \"%V?%V\"", rc, &r->uri, &r->args);
122 }
123 121
124 return rc; 122 return rc;
125 } 123 }
126 124
127 125