# HG changeset patch # User Igor Sysoev # Date 1160557921 0 # Node ID 4cb8f85c085d6d24736b9d64881b5d458f1a7ec6 # Parent 761a94247118cf1d79c328e0d5005eb8c7faaf3c fix r759 did not fix the bug diff --git a/src/http/modules/ngx_http_ssi_filter_module.c b/src/http/modules/ngx_http_ssi_filter_module.c --- a/src/http/modules/ngx_http_ssi_filter_module.c +++ b/src/http/modules/ngx_http_ssi_filter_module.c @@ -411,17 +411,16 @@ ngx_http_ssi_body_filter(ngx_http_reques } if (ctx->wait) { - if (r->connection->data != r) { + if (ctx->wait != r) { ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "http ssi filter \"%V\" wait", &r->uri); return NGX_AGAIN; } - if (ctx->wait == r) { - ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, - "http ssi filter \"%V\" continue", &r->uri); - ctx->wait = NULL; - } + ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, + "http ssi filter \"%V\" continue", &r->uri); + + ctx->wait = NULL; } slcf = ngx_http_get_module_loc_conf(r, ngx_http_ssi_filter_module);