Author: jfrederic.clere(a)jboss.com
Date: 2009-02-10 17:42:47 -0500 (Tue, 10 Feb 2009)
New Revision: 2280
Modified:
trunk/mod_cluster/native/advertise/mod_advertise.c
Log:
Fix MODCLUSTER-49: stop httpd and give an error message.
Modified: trunk/mod_cluster/native/advertise/mod_advertise.c
===================================================================
--- trunk/mod_cluster/native/advertise/mod_advertise.c 2009-02-10 22:11:45 UTC (rev 2279)
+++ trunk/mod_cluster/native/advertise/mod_advertise.c 2009-02-10 22:42:47 UTC (rev 2280)
@@ -587,6 +587,13 @@
}
}
+ /* prevent X-Manager-Address: (null):0 */
+ if (!ma_advertise_srvs || !ma_advertise_srvp) {
+ ap_log_error(APLOG_MARK, APLOG_CRIT, 0, s,
+ "mod_advertise: ServerAdvertise Address or Port not
defined");
+ return APR_EGENERAL;
+ }
+
/* Create parent management thread */
is_mp_running = 1;
rv = apr_thread_create(&tp, NULL, parent_thread, s, pconf);
Show replies by date