From: Wilfredo Sanchez Date: Thu, 7 Apr 2005 00:40:27 +0000 (+0000) Subject: Use APR_STATUS_IS_EAGAIN rather than comparing against APR_EAGAIN. X-Git-Tag: 2.1.5~235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba778d2478ae55bad326f7c0b0a05588c581f351;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/server/core_filters.c b/server/core_filters.c index df35563d537..499b1f80d70 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;