1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

Introduce new function ap_get_conn_socket() to access the socket of

a connection


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1135153 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Fritsch
2011-06-13 16:02:18 +00:00
parent 04d48349bb
commit fba947527f
13 changed files with 28 additions and 11 deletions

View File

@@ -221,9 +221,7 @@ static int proxy_fdpass_handler(request_rec *r, proxy_worker *worker,
}
}
/* XXXXX: THIS IS AN EVIL HACK */
/* There should really be a (documented) public API for this ! */
clientsock = ap_get_core_module_config(r->connection->conn_config);
clientsock = ap_get_conn_socket(r->connection);
rv = send_socket(r->pool, sock, clientsock);
if (rv != APR_SUCCESS) {