Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/http/ngx_http_write_filter_module.c')
-rw-r--r--src/http/ngx_http_write_filter_module.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_write_filter_module.c b/src/http/ngx_http_write_filter_module.c
index f3b36225b..c4d0a0e7e 100644
--- a/src/http/ngx_http_write_filter_module.c
+++ b/src/http/ngx_http_write_filter_module.c
@@ -55,7 +55,7 @@ ngx_http_write_filter(ngx_http_request_t *r, ngx_chain_t *in)
c = r->connection;
- if (c->closed) {
+ if (c->error) {
return NGX_ERROR;
}
@@ -220,7 +220,7 @@ ngx_http_write_filter(ngx_http_request_t *r, ngx_chain_t *in)
}
if (chain == NGX_CHAIN_ERROR) {
- c->closed = 1;
+ c->error = 1;
return NGX_ERROR;
}