httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r521681 - /httpd/httpd/trunk/server/core_filters.c
Date Fri, 23 Mar 2007 11:46:11 GMT
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));



Mime
View raw message