
* server/core_filters.c (ap_core_ouput_filter): Return APR_ECONNABORTED
  rather than APR_SUCCESS after a write failure.

Submitted by: rpluem

Index: server/core_filters.c
===================================================================
--- server/core_filters.c	(revision 790833)
+++ server/core_filters.c	(working copy)
@@ -909,12 +909,9 @@
             /* No need to check for SUCCESS, we did that above. */
             if (!APR_STATUS_IS_EAGAIN(rv)) {
                 c->aborted = 1;
+                return APR_ECONNABORTED;
             }
 
-            /* The client has aborted, but the request was successful. We
-             * will report success, and leave it to the access and error
-             * logs to note that the connection was aborted.
-             */
             return APR_SUCCESS;
         }
 
