comparison src/http/ngx_http_core_module.c @ 386:1878e9c00f22 NGINX_0_6_37

nginx 0.6.37 *) Feature: Microsoft specific "AUTH LOGIN with User Name" mode support in mail proxy server. Thanks to Maxim Dounin. *) Bugfix: nginx could not be built on platforms different from i386, amd64, sparc, and ppc; the bug had appeared in 0.6.36.
author Igor Sysoev <http://sysoev.ru>
date Mon, 18 May 2009 00:00:00 +0400
parents 09b703ae3ba5
children 8815ae9c367b
comparison
equal deleted inserted replaced
385:842321c9fc84 386:1878e9c00f22
1555 1555
1556 1556
1557 ngx_int_t 1557 ngx_int_t
1558 ngx_http_output_filter(ngx_http_request_t *r, ngx_chain_t *in) 1558 ngx_http_output_filter(ngx_http_request_t *r, ngx_chain_t *in)
1559 { 1559 {
1560 ngx_int_t rc; 1560 ngx_int_t rc;
1561 1561 ngx_connection_t *c;
1562 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 1562
1563 c = r->connection;
1564
1565 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0,
1563 "http output filter \"%V?%V\"", &r->uri, &r->args); 1566 "http output filter \"%V?%V\"", &r->uri, &r->args);
1564 1567
1565 rc = ngx_http_top_body_filter(r, in); 1568 rc = ngx_http_top_body_filter(r, in);
1566 1569
1567 if (rc == NGX_ERROR) { 1570 if (rc == NGX_ERROR) {
1571
1572 if (c->destroyed) {
1573 return NGX_DONE;
1574 }
1575
1568 /* NGX_ERROR may be returned by any filter */ 1576 /* NGX_ERROR may be returned by any filter */
1569 r->connection->error = 1; 1577 c->error = 1;
1570 } 1578 }
1571 1579
1572 return rc; 1580 return rc;
1573 } 1581 }
1574 1582