Klaus Demo nginx / 82e31bf
r2821 merge: test already destroyed request Igor Sysoev 13 years ago
1 changed file(s) with 12 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
15561556 ngx_int_t
15571557 ngx_http_output_filter(ngx_http_request_t *r, ngx_chain_t *in)
15581558 {
1559 ngx_int_t rc;
1560
1561 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
1559 ngx_int_t rc;
1560 ngx_connection_t *c;
1561
1562 c = r->connection;
1563
1564 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0,
15621565 "http output filter \"%V?%V\"", &r->uri, &r->args);
15631566
15641567 rc = ngx_http_top_body_filter(r, in);
15651568
15661569 if (rc == NGX_ERROR) {
1570
1571 if (c->destroyed) {
1572 return NGX_DONE;
1573 }
1574
15671575 /* NGX_ERROR may be returned by any filter */
1568 r->connection->error = 1;
1576 c->error = 1;
15691577 }
15701578
15711579 return rc;