summaryrefslogtreecommitdiff
path: root/network_io
diff options
context:
space:
mode:
Diffstat (limited to 'network_io')
-rw-r--r--network_io/unix/sendrecv.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/network_io/unix/sendrecv.c b/network_io/unix/sendrecv.c
index 39dd199e7..2362b215e 100644
--- a/network_io/unix/sendrecv.c
+++ b/network_io/unix/sendrecv.c
@@ -507,13 +507,9 @@ apr_status_t apr_socket_sendfile(apr_socket_t * sock, apr_file_t * file,
rv = 0;
}
}
- if ((rv == -1) && (errno == EAGAIN)
- && (sock->timeout > 0)) {
- apr_status_t arv = apr_wait_for_io_or_timeout(NULL, sock, 0);
- if (arv != APR_SUCCESS) {
- *len = 0;
- return arv;
- }
+
+ if ((rv == -1) && (errno == EAGAIN) && (sock->timeout > 0)) {
+ sock->options |= APR_INCOMPLETE_WRITE;
}
} while (rv == -1 && (errno == EINTR || errno == EAGAIN));