mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
* Check for an existing socket independant of an existing connection record.
This ensures that requests handled by the '*' worker are sent to the correct backend server. PR: 39253 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@392613 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1870,11 +1870,11 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r,
|
||||
conn->hostname = apr_pstrdup(conn->pool, uri->hostname);
|
||||
conn->port = uri->port;
|
||||
}
|
||||
if (conn->sock) {
|
||||
apr_socket_close(conn->sock);
|
||||
conn->sock = NULL;
|
||||
}
|
||||
if (conn->connection) {
|
||||
if (conn->sock) {
|
||||
apr_socket_close(conn->sock);
|
||||
conn->sock = NULL;
|
||||
}
|
||||
apr_pool_cleanup_kill(conn->connection->pool, conn, connection_cleanup);
|
||||
conn->connection = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user