From 0f505d5c95b4b22f6a47832e29a6723e01652524 Mon Sep 17 00:00:00 2001 From: atlas Date: Thu, 4 Jun 2026 15:39:10 +0200 Subject: [PATCH] fix: increase admin-room poll timeout from 5s to 15s MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tuwunel can take longer than 5 seconds to process admin-room commands during startup when the homeserver is under load. Bump both the poll count (5→15) and the timeout message strings to match. --- hive-c0re/src/matrix.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hive-c0re/src/matrix.rs b/hive-c0re/src/matrix.rs index 3b629687..3a819c5b 100644 --- a/hive-c0re/src/matrix.rs +++ b/hive-c0re/src/matrix.rs @@ -434,7 +434,7 @@ mod extract_new_password_tests { /// /// 1. Anchors at the current end-token (`dir=b&limit=1`). /// 2. Sends `command` as an `m.text` message from the @hive admin account. -/// 3. Polls up to 5 × 1 s for a bot message that satisfies `check`. +/// 3. Polls up to 15 × 1 s for a bot message that satisfies `check`. /// 4. Calls `check(body)` on each non-self message; returns `Ok(T)` on the /// first `Some(T)`. /// @@ -550,7 +550,7 @@ async fn admin_room_reset_password( .with_context(|| { format!( "matrix: admin room reset-password for @{localpart}:{server_name}: \ - no password response received within 5 seconds. \ + no password response received within 15 seconds. \ Verify the admin room accepts 'reset-password @user:server' commands." ) }) @@ -833,7 +833,7 @@ pub async fn promote_user_to_admin( .with_context(|| { format!( "matrix: admin room make-user-admin for @{localpart}:{server_name}: \ - no success response within 5 seconds. \ + no success response within 15 seconds. \ Verify the admin room accepts 'make-user-admin @user:server' commands." ) })