summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.h
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2011-09-15 18:43:19 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2011-09-15 18:43:19 +0000
commitffe4f114173468e2eb205448820c66af0863a9db (patch)
tree4ab6c65844bd30b259d14b70931dc0b3b5f77d9b /src/http/ngx_http_upstream.h
parente19f005daf634f15540c5747dd3689a00719f0f9 (diff)
downloadnginx-ffe4f114173468e2eb205448820c66af0863a9db.tar.gz
nginx-ffe4f114173468e2eb205448820c66af0863a9db.tar.bz2
Upstream: r->upstream->length type change to off_t.
Previous use of size_t may cause wierd effects on 32bit platforms with certain big responses transferred in unbuffered mode. Nuke "if (size > u->length)" check as it's not usefull anyway (preread body data isn't subject to this check) and now requires additional check for u->length being positive.
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_upstream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h
index fa848c0d3..c3f706e14 100644
--- a/src/http/ngx_http_upstream.h
+++ b/src/http/ngx_http_upstream.h
@@ -267,7 +267,7 @@ struct ngx_http_upstream_s {
ngx_http_upstream_resolved_t *resolved;
ngx_buf_t buffer;
- size_t length;
+ off_t length;
ngx_chain_t *out_bufs;
ngx_chain_t *busy_bufs;