Commit efd7bbf1 authored by Justin Erenkrantz's avatar Justin Erenkrantz
Browse files

mod_ssl: fail quickly if SSL connection is aborted rather than making many

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
parent 23513198
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
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]
+4 −0
Original line number Diff line number Diff line
@@ -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;
}