summaryrefslogtreecommitdiff
path: root/include/apr_network_io.h
diff options
context:
space:
mode:
authorylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2017-03-28 23:54:49 +0000
committerylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68>2017-03-28 23:54:49 +0000
commit9aa8403023bde3f89c1036b4e03398d7e1896879 (patch)
treea1448a50b10c927d0cb59b5d38ef1d0003cbdc36 /include/apr_network_io.h
parent53564d1be287bebce73d47f6d36f6f876730c1c4 (diff)
downloadlibapr-9aa8403023bde3f89c1036b4e03398d7e1896879.tar.gz
apr_socket_sendfile:
Be accurate (and consistent accross unixes) with the returned number of bytes written (note that it is possible for both bytes to be sent and an error to be returned, due to headers and trailers handling). Fix some returned errno vs apr_status_t in some error paths. Fix BSDs nonblocking/busy retry on EAGAIN when nothing is written. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1789257 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_network_io.h')
-rw-r--r--include/apr_network_io.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/apr_network_io.h b/include/apr_network_io.h
index 8c7f52b13..5395f99b0 100644
--- a/include/apr_network_io.h
+++ b/include/apr_network_io.h
@@ -610,6 +610,7 @@ APR_DECLARE(apr_status_t) apr_socket_recvfrom(apr_sockaddr_t *from,
* The number of bytes actually sent is stored in the len parameter.
* The offset parameter is passed by reference for no reason; its
* value will never be modified by the apr_socket_sendfile() function.
+ * It is possible for both bytes to be sent and an error to be returned.
*/
APR_DECLARE(apr_status_t) apr_socket_sendfile(apr_socket_t *sock,
apr_file_t *file,