summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2008-05-07 17:33:28 +0000
committerjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2008-05-07 17:33:28 +0000
commit9f565c6988a7e1517112b618fb878f89264d25ba (patch)
tree8badb4240fba55afa19be47688f9872c8d10a1ea
parent54272d23c5c138733afb6cb85555c51b12647ff3 (diff)
downloadlibapr-9f565c6988a7e1517112b618fb878f89264d25ba.tar.gz
backport r654185
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.3.x@654186 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--CHANGES2
-rw-r--r--network_io/unix/sendrecv.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/CHANGES b/CHANGES
index 5acf3401d..5bade2ec0 100644
--- a/CHANGES
+++ b/CHANGES
@@ -47,7 +47,7 @@ Changes for APR 1.3.0
allocation. [David Jones <oscaremma gmail.com>]
*) Implement Darwin-semantic (9.0.0 and later) sendfile support.
- [William Rowe]
+ [William Rowe, Jim Jagielski]
*) Implemented the APR_FOPEN_SPARSE flag, permits win32 to create
sparse data files. Also bestow apr_fileinfo_t csize field for
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