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;
b->bytesleft-=rest;
for (i=0; e+i<last; ++i) {
if (e[i].n-e[i].offset<=rest) {
rest-=e[i].n-e[i].offset;
if (e[i].n<=rest) {
rest-=e[i].n;
++b->next;
if (!rest) break;
} else {

Loading…
Cancel
Save