Tentative update to reduce noise in travis log (i.e. tons of AH02637).
Just switch 2 tests in 'dialup_handler()' when deciding to DECLINE something.
If mod_dialup is not configured, there is no need lo log anything about an
mpm that doesn't support something that is finally not used.
@@ -157,13 +157,6 @@ dialup_handler(request_rec *r)
return DECLINED;
}
- rv = ap_mpm_query(AP_MPMQ_CAN_SUSPEND, &mpm_can_suspend);
- if (!mpm_can_suspend) {
- ap_log_rerror (APLOG_MARK, APLOG_NOTICE, rv, r, APLOGNO(02637)
- "dialup: MPM doesn't support suspending");
- return DECLINED;
- }
-
dcfg = ap_get_module_config(r->per_dir_config,
&dialup_module);
@@ -171,6 +164,13 @@ dialup_handler(request_rec *r)
return DECLINED;
}
+ rv = ap_mpm_query(AP_MPMQ_CAN_SUSPEND, &mpm_can_suspend);
+ if (!mpm_can_suspend) {
+ ap_log_rerror (APLOG_MARK, APLOG_NOTICE, rv, r, APLOGNO(02637)
+ "dialup: MPM doesn't support suspending");
+ return DECLINED;
+ }
+
ccfg = ap_get_core_module_config(r->per_dir_config);
