recent change corrected sendfile parameters but not internal usage

master
leitner 21 years ago
parent fa476a9200
commit 2a516c901a

@ -108,8 +108,8 @@ eagain:
int64 rest=sent; int64 rest=sent;
b->bytesleft-=rest; b->bytesleft-=rest;
for (i=0; e+i<last; ++i) { for (i=0; e+i<last; ++i) {
if (e[i].n-e[i].offset<=rest) { if (e[i].n<=rest) {
rest-=e[i].n-e[i].offset; rest-=e[i].n;
++b->next; ++b->next;
if (!rest) break; if (!rest) break;
} else { } else {

Loading…
Cancel
Save