summaryrefslogtreecommitdiff
path: root/modules/cluster
diff options
context:
space:
mode:
authorRainer Jung <rjung@apache.org>2022-06-20 20:54:14 +0000
committerRainer Jung <rjung@apache.org>2022-06-20 20:54:14 +0000
commit622fed589cef3eff746f54ef0eab91da058b90d6 (patch)
treefa83ccc22328a1a30005f94807df418f84aa03b6 /modules/cluster
parentd6de92c333c3f8cf7b203525328a604c8d202e51 (diff)
downloadhttpd-622fed589cef3eff746f54ef0eab91da058b90d6.tar.gz
*) mod_heartmonitor: Allow "HeartbeatMaxServers 0"
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
Diffstat (limited to 'modules/cluster')
-rw-r--r--modules/cluster/mod_heartmonitor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/cluster/mod_heartmonitor.c b/modules/cluster/mod_heartmonitor.c
index 4e193d28ed..d3d09f76c2 100644
--- a/modules/cluster/mod_heartmonitor.c
+++ b/modules/cluster/mod_heartmonitor.c
@@ -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;
}