diff options
author | Wilfredo Sanchez <wsanchez@apache.org> | 2005-04-07 02:40:27 +0200 |
---|---|---|
committer | Wilfredo Sanchez <wsanchez@apache.org> | 2005-04-07 02:40:27 +0200 |
commit | ba778d2478ae55bad326f7c0b0a05588c581f351 (patch) | |
tree | e0ca355e5f55eb88c5a4b82a61e2483179fe61b3 /server | |
parent | In emulate_sendfile(), handle APR_EAGAIN from apr_socket_send(). (diff) | |
download | apache2-ba778d2478ae55bad326f7c0b0a05588c581f351.tar.xz apache2-ba778d2478ae55bad326f7c0b0a05588c581f351.zip |
Use APR_STATUS_IS_EAGAIN rather than comparing against APR_EAGAIN.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@160352 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'server')
-rw-r--r-- | server/core_filters.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/core_filters.c b/server/core_filters.c index df35563d53..499b1f80d7 100644 --- a/server/core_filters.c +++ b/server/core_filters.c @@ -521,7 +521,7 @@ static apr_status_t emulate_sendfile(core_net_rec *c, apr_file_t *fd, o = 0; rv = apr_file_read(fd, buffer, &sendlen); if (rv == APR_SUCCESS && sendlen) { - while ((rv == APR_SUCCESS || rv == APR_EAGAIN) && sendlen) { + while ((rv == APR_SUCCESS || APR_STATUS_IS_EAGAIN(rv)) && sendlen) { bytes_sent = sendlen; rv = apr_socket_send(c->client_socket, &buffer[o], &bytes_sent); *nbytes += bytes_sent; |