httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r825177 - in /httpd/httpd/trunk: docs/manual/mod/mod_reqtimeout.xml modules/filters/mod_reqtimeout.c
Date Wed, 14 Oct 2009 16:19:06 GMT
Author: sf
Date: Wed Oct 14 16:19:06 2009
New Revision: 825177

URL: http://svn.apache.org/viewvc?rev=825177&view=rev
Log:
Rename ReqTimeout into RequestTimeout, to be more in line with other
directives.

Modified:
    httpd/httpd/trunk/docs/manual/mod/mod_reqtimeout.xml
    httpd/httpd/trunk/modules/filters/mod_reqtimeout.c

Modified: httpd/httpd/trunk/docs/manual/mod/mod_reqtimeout.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_reqtimeout.xml?rev=825177&r1=825176&r2=825177&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_reqtimeout.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_reqtimeout.xml Wed Oct 14 16:19:06 2009
@@ -38,7 +38,7 @@
         30 seconds for receiving the request body:
 
         <example>
-          ReqTimeout headerinit=10 bodyinit=30
+          RequestTimeout headerinit=10 bodyinit=30
         </example>
       </li>
 
@@ -49,7 +49,7 @@
         request including the headers:
 
         <example>
-          ReqTimeout headerinit=10 headerminrate=500 headermax=30
+          RequestTimeout headerinit=10 headerminrate=500 headermax=30
         </example>
       </li>
 
@@ -61,7 +61,7 @@
         <directive module="core">LimitRequestBody</directive>):
 
         <example>
-          ReqTimeout bodyinit=10 bodyminrate=1000
+          RequestTimeout bodyinit=10 bodyminrate=1000
         </example>
       </li>
 
@@ -69,10 +69,10 @@
 </section>
 
 <directivesynopsis>
-<name>ReqTimeout</name>
+<name>RequestTimeout</name>
 <description>Set timeout values for receiving request headers and body from client.
 </description>
-<syntax>ReqTimeout
+<syntax>RequestTimeout
 [headerinit=<var>time</var>
 [headerminrate=<var>rate</var> [headermax=<var>time</var>]]]
 [bodyinit=<var>time</var>
@@ -96,9 +96,11 @@
     (usually the case on Linux and FreeBSD), the socket is not sent to the
     server process before at least one byte (or the whole request for
     <code>httpready</code>) is received. The header timeout configured with
-    <code>ReqTimeout</code> is only effective after the server process has
+    <code>RequestTimeout</code> is only effective after the server process has
     received the socket.</p>
 
+    <p>For the timeout parameters, the value 0 means no limit.</p>
+
     <dl>
 
     <dt><code>headerinit</code></dt>

Modified: httpd/httpd/trunk/modules/filters/mod_reqtimeout.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/filters/mod_reqtimeout.c?rev=825177&r1=825176&r2=825177&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/filters/mod_reqtimeout.c (original)
+++ httpd/httpd/trunk/modules/filters/mod_reqtimeout.c Wed Oct 14 16:19:06 2009
@@ -331,7 +331,7 @@
         }
     }
     else {
-        ret = "unknown ReqTimeout parameter";
+        ret = "unknown RequestTimeout parameter";
     }
     return ret;
     
@@ -351,7 +351,7 @@
         word = ap_getword_conf(cmd->pool, &arg);
         val = strchr(word, '=');
         if (!val) {
-            return "Invalid ReqTimeout parameter. Parameter must be "
+            return "Invalid RequestTimeout parameter. Parameter must be "
             "in the form 'key=value'";
         }
         else
@@ -360,7 +360,8 @@
         err = set_reqtimeout_param(conf, cmd->pool, word, val);
         
         if (err)
-            return apr_pstrcat(cmd->temp_pool, "ReqTimeout: ", err, " ", word, "=", val,
"; ", NULL);
+            return apr_pstrcat(cmd->temp_pool, "RequestTimeout: ", err, " ",
+                               word, "=", val, "; ", NULL);
     }
     
     return NULL;
@@ -384,7 +385,7 @@
 }
 
 static const command_rec reqtimeout_cmds[] = {
-    AP_INIT_RAW_ARGS("ReqTimeout", set_reqtimeouts, NULL, RSRC_CONF,
+    AP_INIT_RAW_ARGS("RequestTimeout", set_reqtimeouts, NULL, RSRC_CONF,
                      "Adjust various Request Timeout parameters"),
     {NULL}
 };



Mime
View raw message