Klaus Demo nginx / 57a713c
fix sendfile on 64-bit Linux and limit_rate on all 64-bit platforms for 2G+ files Igor Sysoev 15 years ago
3 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
153153 size = limit - send;
154154
155155 aligned = (cl->buf->file_pos + size + ngx_pagesize - 1)
156 & ~(ngx_pagesize - 1);
156 & ~((off_t) ngx_pagesize - 1);
157157
158158 if (aligned <= cl->buf->file_last) {
159159 size = aligned - cl->buf->file_pos;
222222 size = limit - send;
223223
224224 aligned = (cl->buf->file_pos + size + ngx_pagesize - 1)
225 & ~(ngx_pagesize - 1);
225 & ~((off_t) ngx_pagesize - 1);
226226
227227 if (aligned <= cl->buf->file_last) {
228228 size = aligned - cl->buf->file_pos;
134134 size = limit - send;
135135
136136 aligned = (cl->buf->file_pos + size + ngx_pagesize - 1)
137 & ~(ngx_pagesize - 1);
137 & ~((off_t) ngx_pagesize - 1);
138138
139139 if (aligned <= cl->buf->file_last) {
140140 size = aligned - cl->buf->file_pos;