From: Ryan Bloom Date: Thu, 28 Dec 2000 23:27:20 +0000 (+0000) Subject: Because we can't get APR_EAGAIN from sendfile if we have a timeout, we X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=009fa62bde6808d31a40ecd9b28df9b17a606887;p=apache Because we can't get APR_EAGAIN from sendfile if we have a timeout, we can simplify this test now. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87545 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/http_core.c b/modules/http/http_core.c index e2d156c506..d680ca7a67 100644 --- a/modules/http/http_core.c +++ b/modules/http/http_core.c @@ -2605,7 +2605,7 @@ static apr_status_t sendfile_it_all(conn_rec *c, rv = apr_sendfile(c->client_socket, fd, hdtr, &file_offset, &tmplen, flags); total_bytes_left -= tmplen; - if (!total_bytes_left || (rv != APR_SUCCESS && !APR_STATUS_IS_EAGAIN(rv))) { + if (!total_bytes_left || rv != APR_SUCCESS) { return rv; /* normal case & error exit */ }