- Jun 12, 2023
-
-
Vladimír Čunát authored
-
- Mar 10, 2023
-
-
Vladimír Čunát authored
- selection: utilize address_state::broken also when forwarding - selection: drop fallbacks that don't make sense when forwarding - iterate: copy EDE codes on DNSSEC SERVFAILs
-
- Dec 14, 2022
-
-
Oto Šťáva authored
-
- Mar 14, 2022
-
-
Vladimír Čunát authored
We use "monotonic" time-stamps for the dead_since field; that breaks on system reboots, in which case we reset the stats. (if the server was categorized as dead) If the server times out afterwards, we'd fail the condition `cur_state.consecutive_timeouts == old_state.consecutive_timeouts` so its stats would not update. Therefore we'd get stuck forever in a state where the unusable server has high priority (no_rtt_info). This commit changes a bit more than was necessary to fix this, including precision of the stats (in some cases).
-
- Dec 21, 2021
-
-
Tomas Krizek authored
-
- Dec 20, 2021
-
-
Oto Šťáva authored
-
- Jul 29, 2021
-
-
- Jun 18, 2021
-
-
They probably couldn't hang open for long, as each client request should cause some cache-searching and thus close it, and even with queries stopping I haven't managed to find a case where it would be left open but... it's nicer to clean up and it should be very cheap.
-
- 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
-
- Mar 26, 2021
-
-
Vladimír Čunát authored
I'm overall unsure here, but this does seem as improvement.
-
Vladimír Čunát authored
The target of STUB might commonly not have good support for "advanced" features like TCP.
-
- Jan 15, 2021
-
-
Štěpán Balážik authored
This lead to unintitialized values being possibly used down the line.
-
- Jan 13, 2021
-
-
Vladimír Čunát authored
More idiomatic code seems better: - for variable initialization we have = { 0 } - (mm_)calloc for heap allocations sizeof: use variable instead of type (where suitable; not sure why)
-
- Jan 08, 2021
-
-
Štěpán Balážik authored
This is done by changing the type of address field in struct choice to union inaddr and moving some conversion around.
-
- Dec 31, 2020
-
-
Vladimír Čunát authored
Small things I've noticed while reading it all. - line breaks: I believe <90 is OK, as usually the attempts to reduce lengths impair readability - avoid unnecessary casts; usually the type was visible on the same line anyway - avoid `|` on booleans - one block gets de-indented (often badly shown in diffs) - no need for UNRECOVERABLE_ERRORS in a header (and a weird one, too) - recoverability from failed assertions (in case they're turned off)
-