From: David Reid Date: Tue, 3 Apr 2001 19:32:19 +0000 (+0000) Subject: This adds some simple error logging to send_the_file. There are a X-Git-Tag: 2.0.16~6 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=043396b7d0eed778e1976565e6acd8d7af3c9d4b;p=apache This adds some simple error logging to send_the_file. There are a 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 --- diff --git a/server/core.c b/server/core.c index 66462dde07..44a8550c0b 100644 --- a/server/core.c +++ b/server/core.c @@ -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"); } } }