comparison src/http/ngx_http_output_filter.c @ 327:e0f3f238db09

nginx-0.0.3-2004-04-26-17:40:01 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 26 Apr 2004 13:40:01 +0000
parents 8733703a37f3
children
comparison
equal deleted inserted replaced
326:8733703a37f3 327:e0f3f238db09
55 ngx_int_t ngx_http_output_filter(ngx_http_request_t *r, ngx_chain_t *in) 55 ngx_int_t ngx_http_output_filter(ngx_http_request_t *r, ngx_chain_t *in)
56 { 56 {
57 ngx_int_t rc; 57 ngx_int_t rc;
58 ngx_output_chain_ctx_t *ctx; 58 ngx_output_chain_ctx_t *ctx;
59 ngx_http_output_filter_conf_t *conf; 59 ngx_http_output_filter_conf_t *conf;
60
61 if (r->connection->write->error) {
62 return NGX_ERROR;
63 }
60 64
61 ctx = ngx_http_get_module_ctx(r->main ? r->main : r, 65 ctx = ngx_http_get_module_ctx(r->main ? r->main : r,
62 ngx_http_output_filter_module); 66 ngx_http_output_filter_module);
63 67
64 if (ctx == NULL) { 68 if (ctx == NULL) {