- Jun 12, 2023
-
-
Vladimír Čunát authored
When inserting rules from a config file, process everything in a single transaction to avoid using inconsistent sets of rules, especially in a different instance and/or in case some error happens. Also fix some over-eager assertions (CHECK_RET).
-
- Jan 26, 2023
-
-
Oto Šťáva authored
-
- Dec 14, 2022
-
-
Oto Šťáva authored
-
- Jun 03, 2022
-
-
Vladimír Čunát authored
https://clangd.llvm.org/design/include-cleaner Though somehow I'm all the time getting false positives for "daemon/bindings/impl.h"
-
- Feb 28, 2022
-
-
Vladimír Čunát authored
The new limit is over 68 years, so still completely meaningless.
-
- Dec 22, 2021
-
-
Vladimír Čunát authored
The approach of the code was rather hacky, simulating some packets arriving from upstream and making the module stack CONSUME that. Instead we take a direct approach now: use the simplified validator API and then insert into cache directly. One effect is improved performance, and consequently roughly halving the lag which happens when prefill module invokes this. (With root zone the lag goes down to 0.1 s from over 0.2 s, on my relatively fast CPU. Fortunately it's just once a day.)
-
- Jul 29, 2021
-
-
- May 25, 2021
-
-
Tomas Krizek authored
To (hopefully) improve readability, rename the typical macro usage of: if (!kr_assume(x)) y; // to if (kr_fails_assert(x)) y; As a convenience, replace the assert without a return value to a more simple version: (void)!kr_assume(x); // becomes kr_assert(x);
-
Tomas Krizek authored
-
- Dec 31, 2020
- Sep 10, 2020
-
-
- The malloc-free pair could be avoided without difficulty, but it seemed like premature optimization. - The libknot functions make error handling a bit difficult (zero is theoretically valid and doesn't show error type), but writing this properly without libknot would need 10-20 additional lines of code and the risk of encountering errors in this function seems very low anyway.
-
See the definition of kr_cdb_pt for details.
-
- Sep 07, 2020
-
-
... in case of usage from kresd (GC does it a bit differently).
-
- Aug 06, 2020
-
-
-
Vladimír Čunát authored
Lots of lines affected, but it gets slightly simpler.
-
- Jul 16, 2020
-
-
- Feb 25, 2020
-
-
Long GNU GPLv3 boilderplate was automatically replaced with machine readable tag.
-
- Jan 08, 2020
-
-
Vladimír Čunát authored
Here I'm interested in "No space left on device"
-
- Dec 19, 2019
-
-
- Jun 13, 2019
-
-
Vladimír Čunát authored
We're very much depending on LuaJIT, for years already. The removed stuff seems very unlikely to be useful in any LuaJIT in forseeable future. The Lua language is effectively forked.
-
Vladimír Čunát authored
On many places we've been assuming that there's only a single worker, but we still often didn't utilize the property well. To get the pointer we used various ways, all even untyped: - __worker global variable in lua - uv_default_loop()->data - kr_request::daemon_context Now we instead simply define a global typed pointer the_worker. Nitpick: also worker_{init,deinit}() are reordered to correspond to the order of the fields, etc.
-
- Mar 06, 2019
-
-
Petr Špaček authored
All cache operations are now counted. These are internal cache operations and do not map directly to number of queries or even number of RRs. Closes: !515
-
Petr Špaček authored
Cache cleaning needs to be done using separate mechanism because cleaning it from worker process does not fit well into our processing model. It is going to be a separate daemon.
-
- Feb 21, 2019
-
-
Vladimír Čunát authored
-
- Feb 11, 2019
-
-
Vladimír Čunát authored
-
Vladimír Čunát authored
-
Vladimír Čunát authored
It's often a bit shorter, and it provides us with location.
-
- Feb 07, 2019
-
-
-
It's now a directory, one C file for each lua table of functions. We get more total lines due to per-file copyright headers, but the original file was just too long (nearing 2k lines). The layout was inspired by the lib/cache/ split. Disadvantage: git operations (e.g. blame) will stumble on this commit. During the move, rename the "str" and "xstr" macros, too. Otherwise there are no real changes, as they would be hard to spot.
-