Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.h @ 4118:dbddec65fdab
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Thu, 15 Sep 2011 18:43:19 +0000 |
parents | 215fe9223419 |
children | 42135dd1f0ea |
comparison
equal
deleted
inserted
replaced
4117:103b0d9afe07 | 4118:dbddec65fdab |
---|---|
265 ngx_http_upstream_headers_in_t headers_in; | 265 ngx_http_upstream_headers_in_t headers_in; |
266 | 266 |
267 ngx_http_upstream_resolved_t *resolved; | 267 ngx_http_upstream_resolved_t *resolved; |
268 | 268 |
269 ngx_buf_t buffer; | 269 ngx_buf_t buffer; |
270 size_t length; | 270 off_t length; |
271 | 271 |
272 ngx_chain_t *out_bufs; | 272 ngx_chain_t *out_bufs; |
273 ngx_chain_t *busy_bufs; | 273 ngx_chain_t *busy_bufs; |
274 ngx_chain_t *free_bufs; | 274 ngx_chain_t *free_bufs; |
275 | 275 |