mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Make AF_UNIX aware... fix Windows/Netware??
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1451905 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -2452,7 +2452,9 @@ PROXY_DECLARE(int) ap_proxy_connect_backend(const char *proxy_function,
|
||||
}
|
||||
}
|
||||
while ((backend_addr || conn->uds_path) && !connected) {
|
||||
if (conn->uds_path) {
|
||||
#if APR_HAVE_SYS_UN_H
|
||||
if (conn->uds_path)
|
||||
{
|
||||
struct sockaddr_un sa;
|
||||
|
||||
rv = apr_socket_create(&newsock, AF_UNIX, SOCK_STREAM, 0,
|
||||
@@ -2483,7 +2485,9 @@ PROXY_DECLARE(int) ap_proxy_connect_backend(const char *proxy_function,
|
||||
break;
|
||||
}
|
||||
}
|
||||
else {
|
||||
else
|
||||
#endif
|
||||
{
|
||||
if ((rv = apr_socket_create(&newsock, backend_addr->family,
|
||||
SOCK_STREAM, APR_PROTO_TCP,
|
||||
conn->scpool)) != APR_SUCCESS) {
|
||||
|
Reference in New Issue
Block a user