]> git.kaiwu.me - nginx.git/commit
Upstream: r->upstream->length type change to off_t.
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 15 Sep 2011 18:43:19 +0000 (18:43 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 15 Sep 2011 18:43:19 +0000 (18:43 +0000)
commitffe4f114173468e2eb205448820c66af0863a9db
tree4ab6c65844bd30b259d14b70931dc0b3b5f77d9b
parente19f005daf634f15540c5747dd3689a00719f0f9
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.
src/http/modules/ngx_http_memcached_module.c
src/http/ngx_http_upstream.c
src/http/ngx_http_upstream.h