summaryrefslogtreecommitdiff
path: root/network_io
diff options
context:
space:
mode:
authorjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2008-05-07 17:32:31 +0000
committerjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2008-05-07 17:32:31 +0000
commit83001ac8a288593697e7cf84d9ec3e035e3f9e0c (patch)
tree4b5e7a35975ccd266b05616e7e886b77e4e9a4e6 /network_io
parentbc1a12d238a0c565fa8f0f48ed42a2bcd086371f (diff)
downloadlibapr-83001ac8a288593697e7cf84d9ec3e035e3f9e0c.tar.gz
Make Darwin's sendfile() really work :)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@654185 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'network_io')
-rw-r--r--network_io/unix/sendrecv.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/network_io/unix/sendrecv.c b/network_io/unix/sendrecv.c
index 2362b215e..ab7eba79c 100644
--- a/network_io/unix/sendrecv.c
+++ b/network_io/unix/sendrecv.c
@@ -472,7 +472,6 @@ apr_status_t apr_socket_sendfile(apr_socket_t * sock, apr_file_t * file,
if (errno == EAGAIN) {
if (sock->timeout > 0) {
sock->options |= APR_INCOMPLETE_WRITE;
- rv = 0;
}
/* BSD's sendfile can return -1/EAGAIN even if it
* sent bytes. Sanitize the result so we get normal EAGAIN