You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jf...@apache.org on 2006/07/31 14:40:02 UTC
svn commit: r427103 -
/httpd/httpd/branches/httpd-proxy-scoreboard/modules/proxy/health_checker_util.c
Author: jfclere
Date: Mon Jul 31 05:40:01 2006
New Revision: 427103
URL: http://svn.apache.org/viewvc?rev=427103&view=rev
Log:
AJP needs to be register at IANA before beeing in apr_uri_port_of_scheme().
Modified:
httpd/httpd/branches/httpd-proxy-scoreboard/modules/proxy/health_checker_util.c
Modified: httpd/httpd/branches/httpd-proxy-scoreboard/modules/proxy/health_checker_util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/httpd-proxy-scoreboard/modules/proxy/health_checker_util.c?rev=427103&r1=427102&r2=427103&view=diff
==============================================================================
--- httpd/httpd/branches/httpd-proxy-scoreboard/modules/proxy/health_checker_util.c (original)
+++ httpd/httpd/branches/httpd-proxy-scoreboard/modules/proxy/health_checker_util.c Mon Jul 31 05:40:01 2006
@@ -71,9 +71,14 @@
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,