httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r125166 - /httpd/httpd/trunk/modules/ssl/ssl_engine_io.c
Date Fri, 14 Jan 2005 14:16:59 GMT
Author: jorton
Date: Fri Jan 14 06:16:58 2005
New Revision: 125166

URL: http://svn.apache.org/viewcvs?view=rev&rev=125166
Log:
* modules/ssl/ssl_engine_io.c (bio_filter_out_flush): Fail if the
connection was reset.

PR: 32699

Modified:
   httpd/httpd/trunk/modules/ssl/ssl_engine_io.c

Modified: httpd/httpd/trunk/modules/ssl/ssl_engine_io.c
Url: http://svn.apache.org/viewcvs/httpd/httpd/trunk/modules/ssl/ssl_engine_io.c?view=diff&rev=125166&p1=httpd/httpd/trunk/modules/ssl/ssl_engine_io.c&r1=125165&p2=httpd/httpd/trunk/modules/ssl/ssl_engine_io.c&r2=125166
==============================================================================
--- httpd/httpd/trunk/modules/ssl/ssl_engine_io.c	(original)
+++ httpd/httpd/trunk/modules/ssl/ssl_engine_io.c	Fri Jan 14 06:16:58 2005
@@ -153,6 +153,10 @@
 
     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;
 }
 

Mime
View raw message