*) 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 Billiras]
Fix numeric check for HeartbeatMaxServers.
*) mod_heartmonitor: Document interaction between
HeartbeatStorage and HeartbeatMaxServers.
Fix new typo in docs...
Submitted by: rjung
Reviewed by: rjung, rpluem, jim
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@
1903619 13f79535-47bb-0310-9956-
ffa450edef68
-*- coding: utf-8 -*-
Changes with Apache 2.4.55
+ *) 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.
+ PR 66131. [Jérôme Billiras]
+
Changes with Apache 2.4.54
*) SECURITY: CVE-2022-31813: mod_proxy X-Forwarded-For dropped by
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- *) 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.
- PR 66131. [Jérôme Billiras]
- Trunk version of patch:
- https://svn.apache.org/r1902117
- https://svn.apache.org/r1902130
- https://svn.apache.org/r1902132
- https://svn.apache.org/r1902133
- 2.4.x patch: svn merge -c 1902117,1902130,1902132,1902133 ^/httpd/httpd/trunk .
- +1: rjung, rpluem, jim
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
+++ /dev/null
- *) 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.
- PR 66131. [Jérôme Billiras]
<directivesynopsis>
<name>HeartbeatStorage</name>
-<description>Path to store heartbeat data</description>
+<description>Path to store heartbeat data when using flat-file storage</description>
<syntax>HeartbeatStorage <var>file-path</var></syntax>
<default>HeartbeatStorage logs/hb.dat</default>
<contextlist><context>server config</context></contextlist>
<usage>
<p>The <directive>HeartbeatStorage</directive> directive specifies the
path to store heartbeat data. This flat-file is used only when
- <module>mod_slotmem_shm</module> is not loaded.</p>
+ <module>mod_slotmem_shm</module> is not loaded and
+ <directive>HeartbeatMaxServers</directive> is set to 0.</p>
</usage>
</directivesynopsis>
maximum number of servers that will be sending requests to this monitor
server. It is used to control the size of the shared memory allocated
to store the heartbeat info when <module>mod_slotmem_shm</module> is in use.</p>
+ <p>For using flat-file storage (without loading <module>mod_slotmem_shm</module>),
+ this must be set to 0. The value must be either 0, or bigger or equals 10.</p>
</usage>
</directivesynopsis>
</modulesynopsis>
}
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;
}