Klaus Demo nginx / 8bb3912
test already destroyed request Igor Sysoev 10 years ago
1 changed file(s) with 12 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
16511651 ngx_int_t
16521652 ngx_http_output_filter(ngx_http_request_t *r, ngx_chain_t *in)
16531653 {
1654 ngx_int_t rc;
1655
1656 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
1654 ngx_int_t rc;
1655 ngx_connection_t *c;
1656
1657 c = r->connection;
1658
1659 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0,
16571660 "http output filter \"%V?%V\"", &r->uri, &r->args);
16581661
16591662 rc = ngx_http_top_body_filter(r, in);
16601663
16611664 if (rc == NGX_ERROR) {
1665
1666 if (c->destroyed) {
1667 return NGX_DONE;
1668 }
1669
16621670 /* NGX_ERROR may be returned by any filter */
1663 r->connection->error = 1;
1671 c->error = 1;
16641672 }
16651673
16661674 return rc;