]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
doc: behavior of layers on kres.FAIL in lua modules
authorVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 27 Jun 2018 11:45:20 +0000 (13:45 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 27 Jun 2018 11:46:12 +0000 (13:46 +0200)
modules/README.rst

index 4424871ed7a955d771f268aa6e8306b3d09fb36a..60a6a7ee21390cfa917cd322f524ed4a906ab82e 100644 (file)
@@ -118,6 +118,10 @@ doesn't provide any layer to capture events. The Lua module can however provide
                        end 
        }
 
+There is currently an additional "feature" in comparison to C layer functions:
+the ``consume``, ``produce`` and ``checkout`` functions do not get called at all
+if ``state == kres.FAIL`` (note that ``finish`` does get called nevertheless).
+
 Since the modules are like any other Lua modules, you can interact with them through the CLI and and any interface.
 
 .. tip:: The module can be placed anywhere in the Lua search path, in the working directory or in the MODULESDIR.