From d9db80574aac56ef664288ddbfc42f3ff590fe1c Mon Sep 17 00:00:00 2001 From: Lukas Pukenis Date: Wed, 7 Jan 2026 16:32:02 +0200 Subject: [PATCH] Increase MAX UAPI failure count This reduces critical errors caused by transient wireguard-nt UAPI failures at the cost of longer detection time when interface is permanently gone. Signed-off-by: Lukas Pukenis --- .unreleased/LLT-6859 | 1 + crates/telio-wg/src/wg.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .unreleased/LLT-6859 diff --git a/.unreleased/LLT-6859 b/.unreleased/LLT-6859 new file mode 100644 index 000000000..8e4d14822 --- /dev/null +++ b/.unreleased/LLT-6859 @@ -0,0 +1 @@ +Increase max UAPI fail count to reduce the chance of critical errors triggered by transient wireguard-nt errors \ No newline at end of file diff --git a/crates/telio-wg/src/wg.rs b/crates/telio-wg/src/wg.rs index aa20fbd15..2de048396 100644 --- a/crates/telio-wg/src/wg.rs +++ b/crates/telio-wg/src/wg.rs @@ -154,7 +154,7 @@ struct State { last_update: Instant, } -const MAX_UAPI_FAIL_COUNT: i32 = 10; +const MAX_UAPI_FAIL_COUNT: i32 = 100; impl DynamicWg { /// Starts the WireGuard adapter with the given parameters.