- Oct 26, 2020
-
-
Three instances send commands and DNS queries to each other.
-
Control protocol uses \n as command delimiter so we cannot allow \n inside commands. Users should be able to Lua-escape \n with \010.
-
-
For now we still attempt to support systems without lua-cqueues, e.g. Ubuntu 16.04. lua-http depends on lua-cqueues so the test for availability of lua-http at the beginning of kr_https_fetch() should cover lua-cqueues as well.
-
We were exceeding CI time limit while running config tests under Valgrind so let's see if smaller number of tests will get us through CI.
-
-
map() command on leader instance now: - detects call errors on followers - detects unsupported number of return values - detects unsupported data types which cannot be serialized - keeps nil return values (signaled by table counter "n") Fixes: #662
-
Let's detect syntax errors before sending the command to all instances.
-
Helper functions for handling variable length arrays with nil values.
-
-
Reasons: - It allows to run several kresd instances and use map() without worrying about instance parameters. - It removes special case from map(). Proper functionality depends on changes in MR !1011.
-
-
Serializes: boolean, nil, number, string, table. Skips all other types (functions, cdata, thread ...) and repeated references to tables. Resulting string should Lua-evaluate to identical objects.
-
This change allows map() to work with systemd integration. As a bonus the new client implementation is based on Lua cqueues allows caller to wrap map() in worker.corroutine() and get asynchronous execution/avoid blocking main loop. Currently socket communication does not employ timeouts so a hang instance will lead to hang map() call. This does not affect query processing _if_ map() is being run in worker.corroutine. Fixes: #554 Fixes: #620
-
- Oct 21, 2020
-
-
Vladimír Čunát authored
FIXME: see FIXMEs in diff, document the API change, re-review.
-
- Oct 15, 2020
-
-
Lukas Jezek authored
-
- Oct 13, 2020
-
-
Tomas Krizek authored
-
Tomas Krizek authored
-
Tomas Krizek authored
-
- Oct 12, 2020
-
-
- Oct 02, 2020
-
-
Using exit code 77 lets meson know to classify tests as skipped instead of failed or passed. Works since meson 0.37. https://mesonbuild.com/Unit-tests.html#skipped-tests-and-hard-errors
-
-
- Sep 10, 2020
-
-
See the definition of kr_cdb_pt for details.
-
- Sep 09, 2020
-
-
Vladimír Čunát authored
(Tiny nitpicks addressed by vcunat.)
-
- Sep 07, 2020
-
-
... in case of usage from kresd (GC does it a bit differently).
-
- Aug 07, 2020
-
-
Petr Špaček authored
It is very useful when debugging. This code gets executed only with special DEBUG policy so we do not need to worry about maximum performance.
-
- Aug 06, 2020
-
-
- Aug 05, 2020
-
-
Vladimír Čunát authored
In particular this gets rid of last light user data inside kresd. It was still causing problems on some systems, for example Debian Sid. The error was the same: "bad light userdata pointer" from luajit, but note that the problem can still be triggered by lua libraries, e.g. cqueues.
-
- Jul 16, 2020
-
-
- Jul 08, 2020
-
-
Petr Špaček authored
It was only generating noise in test logs, especially when network is not abvailable/is intentionally disabled.
-
- May 18, 2020
-
-
Attacker might generate fake NS records pointing to victim's DNS zone. If the zone contains wildcard the attacker might force us into packet exchange with a (lame) DNS server on that IP address. We now limit number of consecuctive failures and kill whole request if limit is exceeded.
-
CWE-406: Insufficient Control of Network Message Volume (Network Amplification) We now limit number of failed NS name resolution attempts for each request. This does not prevent attacker from spoofing delegations but it puts upper bound on amplification factor.
-
- May 13, 2020
-
-
Vladimír Čunát authored
Now it works again with the latest gdb-9.1. As a side effect, some simplification was possible, so that some typedefs are newly defined at once with the underlying type.
-
- May 06, 2020
-
-
Lukas Jezek authored
-
- Apr 27, 2020
-
-
- Apr 14, 2020
-
-
-
Vladimír Čunát authored
Otherwise people could get confusing errors like: > attempt to index field 'bg_worker' (a nil value)
-
- Apr 02, 2020
-
-
Vladimír Čunát authored
Some rules need it and it was nil until now.
-
- Mar 27, 2020
-
-
Vladimír Čunát authored
The new allocation approach isn't perfectly optimal, but it seems relatively easy to understand and handles OOM conditions OK (I think).
-
- Mar 26, 2020
-
-
Vladimír Čunát authored
-