Changes with Apache 2.3.2
[ When backported to 2.2.x, remove entry from this file ]
+ *) core: Enhance KeepAliveTimeout to support a value in milliseconds.
+ PR 46275. [Takashi Sato]
+
*) rotatelogs: Allow size units B, K, M, G and combination of
time and size based rotation. [Rainer Jung]
<name>KeepAliveTimeout</name>
<description>Amount of time the server will wait for subsequent
requests on a persistent connection</description>
-<syntax>KeepAliveTimeout <var>seconds</var></syntax>
+<syntax>KeepAliveTimeout <var>num</var>[ms]</syntax>
<default>KeepAliveTimeout 5</default>
<contextlist><context>server config</context><context>virtual host</context>
</contextlist>
+<compatibility>Specifying a value in milliseconds is available in
+Apache 2.3.2 and later</compatibility>
<usage>
<p>The number of seconds Apache will wait for a subsequent
- request before closing the connection. Once a request has been
+ request before closing the connection. By adding a postfix of ms the
+ timeout can be also set in milliseconds. Once a request has been
received, the timeout value specified by the
<directive module="core">Timeout</directive> directive applies.</p>
<section id="core">
<title>Core Enhancements</title>
- <!-- <dl>
- </dl> -->
+ <dl>
+ <dt>KeepAliveTimeout in milliseconds</dt>
+
+ <dd>It has been made to be possible to specify <directive module="core"
+ >KeepAliveTimeout</directive> in milliseconds.
+ </dd>
+ </dl>
</section>
<section id="module">
static const char *set_keep_alive_timeout(cmd_parms *cmd, void *dummy,
const char *arg)
{
+ apr_interval_time_t timeout;
const char *err = ap_check_cmd_context(cmd, NOT_IN_DIR_LOC_FILE);
if (err != NULL) {
return err;
}
- cmd->server->keep_alive_timeout = apr_time_from_sec(atoi(arg));
+ /* Stolen from mod_proxy.c */
+ if (ap_timeout_parameter_parse(arg, &timeout, "s") != APR_SUCCESS)
+ return "KeepAliveTimeout has wrong format";
+ cmd->server->keep_alive_timeout = timeout;
return NULL;
}