]> granicus.if.org Git - apache/commitdiff
Because we can't get APR_EAGAIN from sendfile if we have a timeout, we
authorRyan Bloom <rbb@apache.org>
Thu, 28 Dec 2000 23:27:20 +0000 (23:27 +0000)
committerRyan Bloom <rbb@apache.org>
Thu, 28 Dec 2000 23:27:20 +0000 (23:27 +0000)
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

index e2d156c506075272cd8f9fa144b7e1db515aaa65..d680ca7a673b6c6a8701c36a7e5717ae6db785ce 100644 (file)
@@ -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 */ 
         }