]> granicus.if.org Git - apache/commitdiff
* modules/ssl/ssl_engine_io.c (bio_filter_out_flush): Fail if the
authorJoe Orton <jorton@apache.org>
Fri, 14 Jan 2005 14:16:58 +0000 (14:16 +0000)
committerJoe Orton <jorton@apache.org>
Fri, 14 Jan 2005 14:16:58 +0000 (14:16 +0000)
connection was reset.

PR: 32699

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

modules/ssl/ssl_engine_io.c

index 63ee452ab79d3eb85bfbae1d09b21377d2827a48..6d1cb17f82f2cd86695dbe3fff0e5dba94404866 100644 (file)
@@ -153,6 +153,10 @@ static int bio_filter_out_flush(BIO *bio)
 
     outctx->rc = ap_pass_brigade(outctx->filter_ctx->pOutputFilter->next,
                                  outctx->bb);
+    /* Fail if the connection was reset: */
+    if (outctx->rc == APR_SUCCESS && outctx->c->aborted) {
+        outctx->rc = APR_ECONNRESET;
+    }
     return (outctx->rc == APR_SUCCESS) ? 1 : -1;
 }