restore "core_output_filter: writing data to the network" message
authorEric Covener <covener@apache.org>
Tue, 9 Jul 2013 14:37:39 +0000 (14:37 +0000)
committerEric Covener <covener@apache.org>
Tue, 9 Jul 2013 14:37:39 +0000 (14:37 +0000)
when c->aborted is set in the core output filter, but now at TRACE1.

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

CHANGES
server/core_filters.c

diff --git a/CHANGES b/CHANGES
index a8e629261feda24475ae5be113413f79635298e1..e64f84c6bfb0fad543c82e5b5b776ad9905c79e7 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
 
+  *) core: Log a message at TRACE1 when the client aborts a connection.
+     [Eric Covener]
+
   *) core: Replace pre_htaccess hook with more flexible open_htaccess hook.
      [Stefan Fritsch]
 
index 0798d2ef1ebbbd09d9c7fd0c6127eafee0640448..fb826c3cfabe5cca42c086eb2ba0c3919d0f4672 100644 (file)
@@ -473,6 +473,8 @@ apr_status_t ap_core_output_filter(ap_filter_t *f, apr_bucket_brigade *new_bb)
         }
         else if (rv != APR_SUCCESS) {
             /* The client has aborted the connection */
+            ap_log_cerror(APLOG_MARK, APLOG_TRACE1, rv, c,
+                          "core_output_filter: writing data to the network");
             c->aborted = 1;
         }
         setaside_remaining_output(f, ctx, bb, c);
@@ -543,6 +545,8 @@ apr_status_t ap_core_output_filter(ap_filter_t *f, apr_bucket_brigade *new_bb)
                                    &(ctx->bytes_written), c);
         if (rv != APR_SUCCESS) {
             /* The client has aborted the connection */
+            ap_log_cerror(APLOG_MARK, APLOG_TRACE1, rv, c,
+                          "core_output_filter: writing data to the network");
             c->aborted = 1;
             return rv;
         }
@@ -554,6 +558,8 @@ apr_status_t ap_core_output_filter(ap_filter_t *f, apr_bucket_brigade *new_bb)
                                       &(ctx->bytes_written), c);
         if ((rv != APR_SUCCESS) && (!APR_STATUS_IS_EAGAIN(rv))) {
             /* The client has aborted the connection */
+            ap_log_cerror(APLOG_MARK, APLOG_TRACE1, rv, c,
+                          "core_output_filter: writing data to the network");
             c->aborted = 1;
             return rv;
         }