remove read from sendfile code path

This commit is contained in:
quackerd 2023-03-14 11:47:48 +01:00
parent 7adb30cff9
commit c6dadbe9e3

View File

@ -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);