]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Warn about blocking calls from Lua 11041/head
authorOtto <otto.moerbeek@open-xchange.com>
Sun, 28 Nov 2021 08:20:31 +0000 (09:20 +0100)
committerOtto <otto.moerbeek@open-xchange.com>
Sun, 28 Nov 2021 08:20:31 +0000 (09:20 +0100)
pdns/recursordist/docs/lua-scripting/index.rst

index a93d215055bbe4f9d24b721b04e5b5ddd9c7b232..cd56c8d8285332c7d7e0dedceaf2b1d2442940a2 100644 (file)
@@ -2,8 +2,6 @@ Scripting PowerDNS Recursor
 ===========================
 In the PowerDNS Recursor, it is possible to modify resolving behaviour using simple scripts written in the `Lua <http://www.lua.org>`_ programming language.
 
-**Note**: This describes the Lua scripts as supported by 4.x. They are very different than the ones from 3.x, but tend to be faster and more correct.
-
 These scripts can be used to quickly override dangerous domains, fix things that are wrong, for load balancing or for legal or commercial purposes.
 The scripts can also protect you or your users from malicious traffic.
 
@@ -13,6 +11,11 @@ If you already have programming experience, `Learn Lua in 15 Minutes <http://tyl
 
 For extra performance, a Just In Time compiled version of Lua called `LuaJIT <http://luajit.org/>`_ is supported.
 
+.. note::
+   PowerDNS Recursor is capable of handling many queries simultaneously using cooperative user space multi-threading.
+   Blocking functions called from Lua are not cooperative, they will monopolize a worker thread while being blocked.
+   Avoid blocking calls.
+
 .. toctree::
     :maxdepth: 2