]> granicus.if.org Git - apache/commitdiff
mod_proxy: we don't need ap_proxy_ssl_connection_cleanup() anymore with
authorYann Ylavic <ylavic@apache.org>
Mon, 27 Jun 2016 21:49:15 +0000 (21:49 +0000)
committerYann Ylavic <ylavic@apache.org>
Mon, 27 Jun 2016 21:49:15 +0000 (21:49 +0000)
ap_proxy_check_backend() used at connection reuse time, so remove its last call and deprecate it.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1750416 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_proxy.h
modules/proxy/mod_proxy_http.c
modules/proxy/proxy_util.c

index 21043e401a9e2e4f1327d865a541d1a355942e20..f606b18ed4c2afbcd7b456f303bd1d8a9dd5e68f 100644 (file)
@@ -668,6 +668,7 @@ PROXY_DECLARE(int) ap_proxy_checkproxyblock(request_rec *r, proxy_server_conf *c
 PROXY_DECLARE(int) ap_proxy_pre_http_request(conn_rec *c, request_rec *r);
 /* DEPRECATED (will be replaced with ap_proxy_connect_backend */
 PROXY_DECLARE(int) ap_proxy_connect_to_backend(apr_socket_t **, const char *, apr_sockaddr_t *, const char *, proxy_server_conf *, request_rec *);
+/* DEPRECATED (will be replaced with ap_proxy_check_backend */
 PROXY_DECLARE(apr_status_t) ap_proxy_ssl_connection_cleanup(proxy_conn_rec *conn,
                                                             request_rec *r);
 PROXY_DECLARE(int) ap_proxy_ssl_enable(conn_rec *c);
index de86636a62b3a41651b79a246c8e644ff3edf96d..a0d88eb05080383b9e8bfdd1d6261ba67db49c53 100644 (file)
@@ -1994,13 +1994,8 @@ static int proxy_http_handler(request_rec *r, proxy_worker *worker,
                                               worker, r->server)) != OK)
         goto cleanup;
 
-
     backend->is_ssl = is_ssl;
 
-    if (is_ssl) {
-        ap_proxy_ssl_connection_cleanup(backend, r);
-    }
-
     /*
      * In the case that we are handling a reverse proxy connection and this
      * is not a request that is coming over an already kept alive connection
index 4a02eb00d30e3bf1341ddd59423aea2d6ec7cbac..1e00d8ab1a05723a370160861518577881823bab 100644 (file)
@@ -1399,6 +1399,7 @@ static apr_status_t connection_cleanup(void *theconn)
     return APR_SUCCESS;
 }
 
+/* DEPRECATED */
 PROXY_DECLARE(apr_status_t) ap_proxy_ssl_connection_cleanup(proxy_conn_rec *conn,
                                                             request_rec *r)
 {