Add request timeouts to matrix-bot-meowlnir helper scripts

Without a timeout, a request against an API which accepts connections
but never answers (e.g. Meowlnir stuck retrying against a homeserver
that rejects its appservice token) hangs the playbook forever instead
of failing with a usable error.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Slavi Pantaleev
2026-08-17 08:57:56 +03:00
co-authored by Claude Fable 5
parent f936231cfe
commit 74e50df931
3 changed files with 10 additions and 3 deletions
@@ -142,6 +142,11 @@ matrix_bot_meowlnir_bots_pruning_on_empty_roster_enabled: false
# Only waited on when the service was not already running.
matrix_bot_meowlnir_bots_start_wait_time_seconds: 15
# How long a single request made through the helper scripts in `bin/` may take, in seconds.
# Applies to requests against both Meowlnir's management API and the homeserver's Client-Server API.
# Bounded so that an API which accepts connections but never answers turns into a clear error instead of hanging the playbook (or a human caller) forever.
matrix_bot_meowlnir_api_request_timeout_seconds: 60
# The name and topic given to management rooms that the playbook creates.
# Only used by bots with `management_room_auto_create` enabled.
matrix_bot_meowlnir_management_room_name: Meowlnir management room