remove read from sendfile code path
This commit is contained in:
parent
7adb30cff9
commit
c6dadbe9e3
@ -459,7 +459,6 @@ Nsendfile_ssl(int fromfd, SSL* tossl, size_t foffset, size_t count)
|
||||
}
|
||||
} else {
|
||||
nleft -= r;
|
||||
foffset += r;
|
||||
}
|
||||
}
|
||||
return count;
|
||||
@ -567,7 +566,6 @@ Nsendfile(int fromfd, int tofd, size_t foffset, size_t count)
|
||||
#elif defined(__FreeBSD__)
|
||||
r = sendfile(fromfd, tofd, foffset + offset, nleft, NULL, &sent, 0);
|
||||
nleft -= sent;
|
||||
foffset += sent;
|
||||
#elif defined(__APPLE__) && defined(__MACH__) && defined(MAC_OS_X_VERSION_10_6) /* OS X */
|
||||
sent = nleft;
|
||||
r = sendfile(fromfd, tofd, offset, &sent, NULL, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user