Commit 5d1425db authored by Mladen Turk's avatar Mladen Turk
Browse files

Close the connection for generic forward and

reverse proxy workers.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@123840 13f79535-47bb-0310-9956-ffa450edef68
parent abedb7f2
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -1658,9 +1658,17 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r,
            conn->port = uri->port;
        }
    }
    /* TODO: add address cache for forward proxies */
    /* TODO: add address cache for generic forward proxies.
     * At least level 0 -> compare with previous hostname:port
     */
    if (r->proxyreq == PROXYREQ_PROXY || r->proxyreq == PROXYREQ_REVERSE ||
        !worker->is_address_reusable) {
        /* TODO: Check if the connection can be reused
         */
        if (conn->connection) {
            conn->close = 1;
            ap_proxy_release_connection("*", conn, r->server);
        }
        err = apr_sockaddr_info_get(&(conn->addr),
                                    conn->hostname, APR_UNSPEC,
                                    conn->port, 0,