You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2007/03/23 12:46:11 UTC

svn commit: r521681 - /httpd/httpd/trunk/server/core_filters.c

Author: jorton
Date: Fri Mar 23 04:46:10 2007
New Revision: 521681

URL: http://svn.apache.org/viewvc?view=rev&rev=521681
Log:
* server/core_filters.c (ap_core_output_filter): Fail quickly with
APR_ECONNABORTED if the c->aborted flag is already set.

PR: 39605

Modified:
    httpd/httpd/trunk/server/core_filters.c

Modified: httpd/httpd/trunk/server/core_filters.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/core_filters.c?view=diff&rev=521681&r1=521680&r2=521681
==============================================================================
--- httpd/httpd/trunk/server/core_filters.c (original)
+++ httpd/httpd/trunk/server/core_filters.c Fri Mar 23 04:46:10 2007
@@ -352,6 +352,12 @@
     apr_bucket *bucket, *next;
     apr_size_t bytes_in_brigade, non_file_bytes_in_brigade;
 
+    /* Fail quickly if the connection has already been aborted. */
+    if (c->aborted) {
+        apr_brigade_cleanup(new_bb);
+        return APR_ECONNABORTED;
+    }
+
     if (ctx == NULL) {
         apr_status_t rv;
         ctx = apr_pcalloc(c->pool, sizeof(*ctx));