doomed ap_pass_brigade calls.
MFC: 125166
PR: 32699
Reviewed by: jorton, jerenkrantz, jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@151260
13f79535-47bb-0310-9956-
ffa450edef68
Changes with Apache 2.0.53
+ *) mod_ssl: fail quickly if SSL connection is aborted rather than
+ making many doomed ap_pass_brigade calls. PR 32699. [Joe Orton]
+
*) Remove compiled-in upper limit on LimitRequestFieldSize.
[Bill Stoddard]
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;
}