From: Jean-Frederic Clere Date: Mon, 31 Jul 2006 12:40:01 +0000 (+0000) Subject: AJP needs to be register at IANA before beeing in apr_uri_port_of_scheme(). X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55af90f7b9b357cf0856e3d14e72b760715494b9;p=thirdparty%2Fapache%2Fhttpd.git AJP needs to be register at IANA before beeing in apr_uri_port_of_scheme(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/httpd-proxy-scoreboard@427103 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/health_checker_util.c b/modules/proxy/health_checker_util.c index 43da1f4f878..a20235d738c 100644 --- a/modules/proxy/health_checker_util.c +++ b/modules/proxy/health_checker_util.c @@ -71,9 +71,14 @@ static apr_status_t test_backend(char *scheme, char *hostname, int port, apr_poo apr_sockaddr_t *epsv_addr; apr_status_t rv; - /* Note that AJP requires a new apr-util (29-07-2006) */ - if (!port) - port = (int) apr_uri_port_of_scheme(scheme); + /* AJP port will not be support by apr-util until AJP get registered at IANA */ + if (!port) { + if (strcmp(scheme, "ajp") == 0) + port = 8009; + else + port = (int) apr_uri_port_of_scheme(scheme); + } + rv = apr_socket_create(&newsock, APR_INET, SOCK_STREAM, APR_PROTO_TCP, pool); if (rv != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_ERR, rv, NULL,