Skip to content

fix(wecom): fail stalled websocket reconnects fast#150

Merged
duguwanglong merged 1 commit intomainfrom
fix/wecom-reconnect-watchdog
Apr 21, 2026
Merged

fix(wecom): fail stalled websocket reconnects fast#150
duguwanglong merged 1 commit intomainfrom
fix/wecom-reconnect-watchdog

Conversation

@xiami762
Copy link
Copy Markdown
Contributor

Summary

  • add a reconnect watchdog so stalled WeCom websocket recovery fails instead of hanging indefinitely
  • validate and normalize reconnectTimeoutSeconds before startup so invalid configs fail fast
  • cover watchdog expiry, successful reconnect, and intentional shutdown paths with channel tests

Test plan

  • uv run pytest tests/channel/test_wecom.py

Add a reconnect watchdog so stalled WeCom websocket recovery surfaces as a failure instead of hanging forever. Validate the timeout config and cover the new disconnect, reconnect, and shutdown paths with tests.

Made-with: Cursor
@xiami762 xiami762 requested a review from duguwanglong April 21, 2026 02:23
@duguwanglong duguwanglong merged commit 90575a2 into main Apr 21, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants