]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Tentative update to reduce noise in travis log (i.e. tons of AH02637).
authorChristophe Jaillet <jailletc36@apache.org>
Thu, 23 Sep 2021 20:18:23 +0000 (20:18 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Thu, 23 Sep 2021 20:18:23 +0000 (20:18 +0000)
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.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893582 13f79535-47bb-0310-9956-ffa450edef68

modules/test/mod_dialup.c

index ef80d86c457659791ea6da58b3eab9cd2e485ce6..5eb508ba5cfbca61060646921b454b73c52a760c 100644 (file)
@@ -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);