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

(-)httpd-2.2.x/modules/proxy/mod_proxy_http.c (+4 lines)
Lines 272-277 Link Here
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, "SSL_connect_rv"), "err") == 0){
276
                conn->worker->s->status |= PROXY_WORKER_IN_ERROR;
277
                conn->worker->s->error_time = apr_time_now();
278
            }
275
            return APR_STATUS_IS_TIMEUP(status) ? HTTP_GATEWAY_TIME_OUT : HTTP_BAD_GATEWAY;
279
            return APR_STATUS_IS_TIMEUP(status) ? HTTP_GATEWAY_TIME_OUT : HTTP_BAD_GATEWAY;
276
        }
280
        }
277
        else { 
281
        else { 
(-)httpd-2.2.x/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