You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(slack): wrap connect_to_new_endpoint() in asyncio.wait_for to prevent watchdog stall #683
The Slack Socket Mode watchdog calls await self.client.connect_to_new_endpoint()
without a timeout. If that SDK call hangs (DNS lookup blocked, TCP SYN
no-response, slack.com unreachable), the watchdog task is blocked
indefinitely inside the await. No subsequent ticks. The watchdog effectively
dies silently — the very failure mode #244 was meant to prevent.
Discovery
Surfaced during the /autoplan review of #244 (multi-connection mode).
The original start() path wraps client.connect() in asyncio.wait_for(..., timeout=10), but the reconnect path in _attempt_reconnect() does not have an analogous guard.
After #244 (multi-connection N=2 default): a single client's stuck reconnect
no longer takes down all of Slack — siblings keep absorbing traffic. So this
went from "P1 cliff" to "P2 quality-of-life." Still worth fixing.
Acceptance
_attempt_reconnect() calls connect_to_new_endpoint() under asyncio.wait_for with a configurable timeout (default 30 s)
Test: when the SDK reconnect call hangs, the watchdog logs the timeout
and the next tick still runs
Activity
fix(slack): multi-connection Socket Mode with envelope-ID dedup ring (#…
vybe commentedon Jun 1, 2026
Shipped in v0.6.0 (released via #998).
Release: v0.6.1 (#1171)