]> granicus.if.org Git - apache/commitdiff
This adds some simple error logging to send_the_file. There are a
authorDavid Reid <dreid@apache.org>
Tue, 3 Apr 2001 19:32:19 +0000 (19:32 +0000)
committerDavid Reid <dreid@apache.org>
Tue, 3 Apr 2001 19:32:19 +0000 (19:32 +0000)
lot more cases that we should log :(

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88700 13f79535-47bb-0310-9956-ffa450edef68

server/core.c

index 66462dde078b2922bf7644afb70465b37a3747d5..44a8550c0b7a63691c83ddc73dd1a9eaf71a30b0 100644 (file)
@@ -2659,6 +2659,9 @@ static apr_status_t send_the_file(conn_rec *c, apr_file_t *fd,
                 o += bytes_sent;       /* o is where we are in the buffer */
                 *nbytes += bytes_sent;
                 togo -= bytes_sent;    /* track how much of the file we've sent */
+            } else {
+                ap_log_error(APLOG_MARK, APLOG_ERR, rv, NULL,
+                             "Failed to send data in send_the_file");
             }
         }
     }