comparison src/os/unix/ngx_solaris_sendfilev_chain.c @ 1182:df449f4a8032

fix sendfile on 64-bit Linux and limit_rate on all 64-bit platforms for 2G+ files
author Igor Sysoev <igor@sysoev.ru>
date Mon, 23 Apr 2007 21:32:13 +0000
parents 9262f520ce21
children f69d1aab6a0f
comparison
equal deleted inserted replaced
1181:ea5ecb1aae88 1182:df449f4a8032
133 133
134 if (send + size > limit) { 134 if (send + size > limit) {
135 size = limit - send; 135 size = limit - send;
136 136
137 aligned = (cl->buf->file_pos + size + ngx_pagesize - 1) 137 aligned = (cl->buf->file_pos + size + ngx_pagesize - 1)
138 & ~(ngx_pagesize - 1); 138 & ~((off_t) ngx_pagesize - 1);
139 139
140 if (aligned <= cl->buf->file_last) { 140 if (aligned <= cl->buf->file_last) {
141 size = aligned - cl->buf->file_pos; 141 size = aligned - cl->buf->file_pos;
142 } 142 }
143 } 143 }