From 74383a7cae65ed51fcb1862cb0bd3e517a3ad9e1 Mon Sep 17 00:00:00 2001 From: Ryan Bloom Date: Thu, 28 Dec 2000 23:27:20 +0000 Subject: [PATCH] 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 --- modules/http/http_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ } -- 2.50.1