View | Details | Raw Unified | Return to bug 50332
Collapse All | Expand All

(-)modules/proxy/mod_proxy_http.c (-2 / +8 lines)
Lines 271-280 Link Here
271
        ap_log_error(APLOG_MARK, APLOG_ERR, status, r->server,
271
        ap_log_error(APLOG_MARK, APLOG_ERR, status, r->server,
272
                     "proxy: pass request body failed to %pI (%s)",
272
                     "proxy: pass request body failed to %pI (%s)",
273
                     conn->addr, conn->hostname);
273
                     conn->addr, conn->hostname);
274
        if (origin->aborted) { 
274
        if (origin->aborted) {
275
            if (strcmp(apr_table_get(origin->notes,
276
                                     "SSL_connect_rv"), "err") == 0) {
277
                return ap_proxyerror(r, HTTP_INTERNAL_SERVER_ERROR,
278
                                     "Error during SSL Handshake with"
279
                                     " remote server");
280
            }
275
            return APR_STATUS_IS_TIMEUP(status) ? HTTP_GATEWAY_TIME_OUT : HTTP_BAD_GATEWAY;
281
            return APR_STATUS_IS_TIMEUP(status) ? HTTP_GATEWAY_TIME_OUT : HTTP_BAD_GATEWAY;
276
        }
282
        }
277
        else { 
283
        else {
278
            return HTTP_BAD_REQUEST; 
284
            return HTTP_BAD_REQUEST; 
279
        }
285
        }
280
    }
286
    }
(-)modules/ssl/ssl_engine_io.c (+4 lines)
Lines 1065-1070 Link Here
1065
            ssl_log_ssl_error(APLOG_MARK, APLOG_INFO, server);
1065
            ssl_log_ssl_error(APLOG_MARK, APLOG_INFO, server);
1066
            /* ensure that the SSL structures etc are freed, etc: */
1066
            /* ensure that the SSL structures etc are freed, etc: */
1067
            ssl_filter_io_shutdown(filter_ctx, c, 1);
1067
            ssl_filter_io_shutdown(filter_ctx, c, 1);
1068
            apr_table_set(c->notes, "SSL_connect_rv", "err");
1068
            return HTTP_BAD_GATEWAY;
1069
            return HTTP_BAD_GATEWAY;
1069
        }
1070
        }
1070
1071
Lines 1082-1087 Link Here
1082
                }
1083
                }
1083
                /* ensure that the SSL structures etc are freed, etc: */
1084
                /* ensure that the SSL structures etc are freed, etc: */
1084
                ssl_filter_io_shutdown(filter_ctx, c, 1);
1085
                ssl_filter_io_shutdown(filter_ctx, c, 1);
1086
                apr_table_set(c->notes, "SSL_connect_rv", "err");
1085
                return HTTP_BAD_GATEWAY;
1087
                return HTTP_BAD_GATEWAY;
1086
            }
1088
            }
1087
            X509_free(cert);
1089
            X509_free(cert);
Lines 1101-1110 Link Here
1101
                              hostname, hostname_note);
1103
                              hostname, hostname_note);
1102
                /* ensure that the SSL structures etc are freed, etc: */
1104
                /* ensure that the SSL structures etc are freed, etc: */
1103
                ssl_filter_io_shutdown(filter_ctx, c, 1);
1105
                ssl_filter_io_shutdown(filter_ctx, c, 1);
1106
                apr_table_set(c->notes, "SSL_connect_rv", "err");
1104
                return HTTP_BAD_GATEWAY;
1107
                return HTTP_BAD_GATEWAY;
1105
            }
1108
            }
1106
        }
1109
        }
1107
1110
1111
        apr_table_set(c->notes, "SSL_connect_rv", "ok");
1108
        return APR_SUCCESS;
1112
        return APR_SUCCESS;
1109
    }
1113
    }
1110
1114

Return to bug 50332