Make the SSL filters chain return an error when the handshake fails with an
origin server. It can then be caught by mod_proxy to fail with 502.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1839442 13f79535-47bb-0310-9956-
ffa450edef68
break;
case MODSSL_ERROR_BAD_GATEWAY:
- /* Send an error bucket, though the proxy currently has no
- * special handling for error buckets and ignores this. */
- bucket = ap_bucket_error_create(HTTP_BAD_GATEWAY, NULL,
- f->c->pool,
- f->c->bucket_alloc);
ap_log_cerror(APLOG_MARK, APLOG_INFO, 0, f->c, APLOGNO(01997)
"SSL handshake failed: sending 502");
- break;
+ f->c->aborted = 1;
+ return APR_EGENERAL;
default:
return status;