summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuenter Knauf <fuankg@apache.org>2013-06-25 16:49:56 +0200
committerGuenter Knauf <fuankg@apache.org>2013-06-25 16:49:56 +0200
commite44c118cccd47d79e9397b16bc29f2ebeada118a (patch)
tree35c8f6a42f404c86d3523b16e9f96bc9b885f16e
parentcore: Support the SINGLE_LISTEN_UNSERIALIZED_ACCEPT optimization (diff)
downloadapache2-e44c118cccd47d79e9397b16bc29f2ebeada118a.tar.xz
apache2-e44c118cccd47d79e9397b16bc29f2ebeada118a.zip
Update doccu.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1496501 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--docs/manual/mod/mod_lua.html.en5
-rw-r--r--docs/manual/mod/mod_lua.xml5
2 files changed, 4 insertions, 6 deletions
diff --git a/docs/manual/mod/mod_lua.html.en b/docs/manual/mod/mod_lua.html.en
index 3301e03ecf..153b79c7d2 100644
--- a/docs/manual/mod/mod_lua.html.en
+++ b/docs/manual/mod/mod_lua.html.en
@@ -674,7 +674,7 @@ r:flush() -- flushes the output buffer.
while we_have_stuff_to_send do
r:puts("Bla bla bla\n") -- print something to client
r:flush() -- flush the buffer (send to client)
- r:sleep(0.5) -- fake processing time and repeat
+ r.usleep(500000) -- fake processing time for 0.5 sec. and repeat
end
</pre>
@@ -970,8 +970,7 @@ local matches = r:regex("FOO bar BAz", [[(foo) bar]], 1)
<pre class="prettyprint lang-lua">
-r:sleep(number_of_seconds) -- Puts the script to sleep for a given number of seconds.
- -- This can be a floating point number like 1.25 for extra accuracy.
+r.usleep(number_of_microseconds) -- Puts the script to sleep for a given number of microseconds.
</pre>
diff --git a/docs/manual/mod/mod_lua.xml b/docs/manual/mod/mod_lua.xml
index fb28dc18b9..ee617d99b2 100644
--- a/docs/manual/mod/mod_lua.xml
+++ b/docs/manual/mod/mod_lua.xml
@@ -633,7 +633,7 @@ r:flush() -- flushes the output buffer.
while we_have_stuff_to_send do
r:puts("Bla bla bla\n") -- print something to client
r:flush() -- flush the buffer (send to client)
- r:sleep(0.5) -- fake processing time and repeat
+ r.usleep(500000) -- fake processing time for 0.5 sec. and repeat
end
</highlight>
@@ -894,8 +894,7 @@ local matches = r:regex("FOO bar BAz", [[(foo) bar]], 1)
</highlight>
<highlight language="lua">
-r:sleep(number_of_seconds) -- Puts the script to sleep for a given number of seconds.
- -- This can be a floating point number like 1.25 for extra accuracy.
+r.usleep(number_of_microseconds) -- Puts the script to sleep for a given number of microseconds.
</highlight>
<highlight language="lua">