]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
*) mod_heartmonitor: Allow "HeartbeatMaxServers 0"
authorRainer Jung <rjung@apache.org>
Mon, 20 Jun 2022 20:54:14 +0000 (20:54 +0000)
committerRainer Jung <rjung@apache.org>
Mon, 20 Jun 2022 20:54:14 +0000 (20:54 +0000)
   to use file based storage instead of slotmem.
   Needed after setting HeartbeatMaxServers default
   to the documented value 10 in 2.4.54.
   [Jérôme Billira

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

modules/cluster/mod_heartmonitor.c

index 4e193d28edc617ca92d58ba1e5be4c4030c696de..d3d09f76c294d9c687284fd82e809cc392027263 100644 (file)
@@ -892,8 +892,9 @@ static const char *cmd_hm_maxworkers(cmd_parms *cmd,
     }
 
     maxworkers = atoi(data);
-    if (maxworkers <= 10)
-        return "HeartbeatMaxServers: Should be bigger than 10";
+    if (maxworkers != 0 && maxworkers <= 10)
+        return "HeartbeatMaxServers: Should be 0 for file storage, "
+               "or greater or equal than 10 for slotmem";
 
     return NULL;
 }