|
Removed
Link Here
|
| 1 |
diff --git httpd.cxx httpd.cxx |
| 2 |
index 98cec3c..958200a 100644 |
| 3 |
--- httpd.cxx |
| 4 |
+++ httpd.cxx |
| 5 |
@@ -1734,7 +1734,7 @@ request_done: |
| 6 |
#if defined LINUX_SENDFILE_API |
| 7 |
sent = sendfile(msgsock, fileno(res_info->read), NULL, total); |
| 8 |
#elif defined FREEBSD_SENDFILE_API |
| 9 |
- sendfile(msgsock, fileno(res_info->read), total, &sent, NULL, 0); |
| 10 |
+ if (sendfile(msgsock, fileno(res_info->read), NULL, total, NULL, NULL, 0) == 0) sent = total; |
| 11 |
#elif defined _WIN32 |
| 12 |
if (!res_info->process && lpfnTransmitFile && lpfnTransmitFile( |
| 13 |
msgsock, |