]> granicus.if.org Git - apache/commitdiff
* Ensure that aborted connections are logged as such.
authorRuediger Pluem <rpluem@apache.org>
Mon, 15 Oct 2018 19:25:20 +0000 (19:25 +0000)
committerRuediger Pluem <rpluem@apache.org>
Mon, 15 Oct 2018 19:25:20 +0000 (19:25 +0000)
  Set c->aborted before apr_brigade_cleanup to have the correct status
  when logging the request as apr_brigade_cleanup triggers the logging
  of the request if it contains an EOR bucket.

PR: 62823
Submitted by: Arnaud Grandville <contact@grandville.net>
Reviewed by:rpluem

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

CHANGES
server/core_filters.c

diff --git a/CHANGES b/CHANGES
index ec01e04e0c946d8c8a01f7474fc442268fe1364c..045c767eb14c49a13fb10e3a8b10e97bdc3e2cb3 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.1
 
+  *) core: Ensure that aborted connections are logged as such. PR 62823
+     [Arnaud Grandville <contact@grandville.net>]
+
   *) mpm_event: Stop issuing AH00484 "server reached MaxRequestWorkers..." when
      there are still idle threads available. When there are less idle threads than
      MinSpareThreads, issue new one-time message AH10159. Matches worker MPM.
index 751cb2581a1212fe2000031ce42ad11ed8563c9b..51a17a6be72f3d9202c170de6bfa5c54e1408f13 100644 (file)
@@ -436,8 +436,13 @@ apr_status_t ap_core_output_filter(ap_filter_t *f, apr_bucket_brigade *bb)
         ap_log_cerror(
                 APLOG_MARK, APLOG_TRACE1, rv, c,
                 "core_output_filter: writing data to the network");
-        apr_brigade_cleanup(bb);
+        /*
+         * Set c->aborted before apr_brigade_cleanup to have the correct status
+         * when logging the request as apr_brigade_cleanup triggers the logging
+         * of the request if it contains an EOR bucket.
+         */
         c->aborted = 1;
+        apr_brigade_cleanup(bb);
         return rv;
     }