- Nov 24, 2016
-
-
Vladimír Čunát authored
... and avoid returning a negative number.
-
Vladimír Čunát authored
... and avoid returning a negative number.
-
Vladimír Čunát authored
It seems a bit cleaner, though impact on size and load speed should not be noticeable. We simply install most of the lua code, as before, and I assume that we *do* want to keep that visibility, at least by default. Suggested on !57.
-
- Nov 22, 2016
-
-
Ondřej Surý authored
lib/root-hints.inc: improve regeneration safeguards - Drop all make dependencies, so it's only generated when the file goes missing (i.e. was explicitly deleted). - Add checks into the generator to avoid producing empty strings on failures. It compiled correctly and wasn't easy to debug. See merge request !79
-
Vladimír Čunát authored
- Drop all make dependencies, so it's only generated when the file goes missing (i.e. was explicitly deleted). - Add checks into the generator to avoid producing empty strings on failures. It compiled correctly and wasn't easy to debug.
-
- Nov 21, 2016
-
-
Vladimír Čunát authored
See the commit messages for details and merge request !67
-
- Nov 15, 2016
-
-
Vladimír Čunát authored
-
Vladimír Čunát authored
-
- Nov 14, 2016
-
-
Vladimír Čunát authored
We only want this when deleted explicitly.
-
Vladimír Čunát authored
It seems a bit cleaner, though impact on size and load speed should not be noticeable. We simply install most of the lua code, as before, and I assume that we *do* want to keep that visibility, at least by default. Suggested on !57.
-
Vladimír Čunát authored
lua ffi bindings: fix incorrect structs Some structures have changed but lua was still using the old ABI. I think no our lua code used the fields misplaced due to this, except an example in documentation. I didn't check much of the ABI in there. I wish I knew some (half-)automatic way how to do that. See merge request !68
-
- Nov 13, 2016
-
-
Ondřej Surý authored
Copy new query flags from lib/rplan.h to lua See merge request !75
-
Daniel Kahn Gillmor authored
-
Ondřej Surý authored
whitespace fixes in daemon/tls.c See merge request !74
-
Ondřej Surý authored
-
- Nov 12, 2016
-
-
Ondřej Surý authored
Allow to override hostname() with a lua call hostname("example.com") This changes lua hostname() call to accept optional parameter with new hostname. This is needed to override possibly wrong name used for ephemeral certs. See merge request !72
-
Ondřej Surý authored
-
- Nov 10, 2016
-
-
Vladimír Čunát authored
Fix osx sed See merge request !70
-
Vladimír Čunát authored
That way we should notice breakages like this before merging.
-
Vladimír Čunát authored
\t escape is a non-standard escape sequence. Thanks Marek for reporting! http://unix.stackexchange.com/a/145385/41413
-
-
- Nov 08, 2016
-
-
Vladimír Čunát authored
Some structures have changed but lua was still using the old ABI. I think no our lua code used the fields misplaced due to this, except an example in documentation. I didn't check much of the ABI in there. I wish I knew some (half-)automatic way how to do that.
-
Vladimír Čunát authored
- The API and ABI for modules changes slightly (details below). KR_MODULE_API is bumped to avoid loading incompatible code. We have bumped libkres ABIVER since the last release 1.1.1, so leaving that one intact. - Make KR_STATE_YIELD not reuse 0 value anymore. It's easy to e.g. return kr_ok() by mistake. - struct kr_layer_t: * ::mm was unused, uninitialized, etc. * Make ::state an int, as it was everywhere else. * void *data was ugly and always containing struct kr_request * - struct kr_layer_api: * Drop the void* parameter from ::begin, as it was only used for the request which is available as ctx->req anyway (formerly ctx->data). * Drop ::fail. It wasn't even called. Modules can watch for KR_STATE_FAIL in ::finish. - Document the apparent meaning of the layer interface, deduced mainly from the way it's used in the code. Caveats: * enum knot_layer_state handling seems to assume that it holds exactly one of the possibilities at a time. The cookie module does NOT follow that (intentionally), apparently depending on the exact implementation of the handling at that moment. It feels fragile. * I was unable to deduce a plausible description of when ::reset is called. It's practically unused in modules, too.
-
Vladimír Čunát authored
It causes lots of line changes, but it would be confusing to keep the current state over long term.
-
- Nov 03, 2016
-
-
Vladimír Čunát authored
modules/daf: document restriction on order of loading See the slack channel for previous discussion. See merge request !62
-
Vladimír Čunát authored
make: strip *.lua as intended since dcd89700 This saves a few kilobytes in the executable. Also, the name XXD seemed no longer suitable, as it does lua-specific cleaning. See merge request !57
-
- Nov 02, 2016
-
-
Ondřej Surý authored
zonecut: add missing AAAA hints for E and G servers The other records seem OK. Fixes #100. See merge request !66
-
Vladimír Čunát authored
Fixes #100. The file with the addresses is in the repo, so people don't have to regenerate it, but the build system is able to do it.
-
Vladimír Čunát authored
cache: avoid missing uint typedef I don't know why it passed on Linux without any warning. See merge request !65
-
Vladimír Čunát authored
I don't know why it passed on Linux without any warning.
-
Ondřej Surý authored
Ignore generated modules/version/version.lua See merge request !64
-
Ondřej Surý authored
-
Vladimír Čunát authored
travis osx build was fixed See merge request !63
-
Vladimír Čunát authored
lru: new implementation and also interface The implementation is now a hybrid, slightly described at top of `lib/generic/lru.h`. Also the API is changed a bit, leading to slight simplification of our use patterns. (EDITED) See merge request !44
-
Vladimír Čunát authored
-
Vladimír Čunát authored
... and that doesn't necessarily mean that malloc() failed. We do *not* want to evict a heavy-hitter by an unfrequent element. Note: even the implementation currently in master *did* return NULL, so some parts of the code were just wrongly returning ENOMEM.
-
Vladimír Čunát authored
The implementation is now similar to set-associative caches that x86 CPU use. Also the API is changed a bit, leading to slight simplification of our use patterns.
-
`make bench` now runs a predefined set of microbenchmarks (right now LRU), it's a start for comparative microbench of internal structures
-
Vladimír Čunát authored
The Makefile isn't perfect. I noted it doesn't clean the bench, but we have the same problem for some other parts, e.g. in deckard.
-
- Oct 31, 2016
-
-
Vladimír Čunát authored
add option to reorder cached RRs in answers Fixes https://gitlab.labs.nic.cz/knot/resolver/issues/93. API of a KR_EXPORT function is changed, so ABIVER is bumped. See merge request !47
-