hermes-agent/gateway/platforms
Teknium 45e1a5037f
fix(gateway): add request timeouts to HA, Email, Mattermost, SMS adapters
Add timeout=30 to all bare ClientSession, IMAP4_SSL, smtplib.SMTP, and
ws_connect calls that previously had no timeout, preventing indefinite
hangs when an external server is slow or unresponsive.

Adapters hardened:
- HomeAssistant: REST + WS session creation, ws_connect handshake
- Email: all IMAP4_SSL (x2) and smtplib.SMTP (x3) calls
- Mattermost: session creation, _api_get, _api_post, _upload_file (60s)
- SMS: session creation in connect() + fallback session in send()

Salvaged from PRs #3161, #3168, #3170 (memosr) and #3201 (binhnt92).
SMS fallback ClientSession on send() also patched (missed in #3201).

Co-authored-by: memosr <memosr@users.noreply.github.com>
Co-authored-by: nguyen binh <binhnt92@users.noreply.github.com>
2026-03-26 14:09:36 -07:00
..
__init__.py Enhance CLI with multi-platform messaging integration and configuration management 2026-02-02 19:01:51 -08:00
ADDING_A_PLATFORM.md docs: finish cron terminology cleanup 2026-03-14 19:20:58 -07:00
api_server.py fix(api_server): streaming breaks when agent makes tool calls (#2985) 2026-03-25 09:56:20 -07:00
base.py feat(telegram): Private Chat Topics with functional skill binding (#2598) 2026-03-26 02:04:11 -07:00
dingtalk.py fix(dingtalk): requirements check passes with only one credential set 2026-03-17 03:50:45 -07:00
discord.py chore: remove ~100 unused imports across 55 files (#3016) 2026-03-25 15:02:03 -07:00
email.py fix(gateway): add request timeouts to HA, Email, Mattermost, SMS adapters 2026-03-26 14:09:36 -07:00
homeassistant.py fix(gateway): add request timeouts to HA, Email, Mattermost, SMS adapters 2026-03-26 14:09:36 -07:00
matrix.py chore: remove ~100 unused imports across 55 files (#3016) 2026-03-25 15:02:03 -07:00
mattermost.py fix(gateway): add request timeouts to HA, Email, Mattermost, SMS adapters 2026-03-26 14:09:36 -07:00
signal.py fix(signal): use id instead of attachmentId in getAttachment RPC 2026-03-21 17:56:12 -07:00
slack.py chore: remove ~100 unused imports across 55 files (#3016) 2026-03-25 15:02:03 -07:00
sms.py fix(gateway): add request timeouts to HA, Email, Mattermost, SMS adapters 2026-03-26 14:09:36 -07:00
telegram.py feat(telegram): Private Chat Topics with functional skill binding (#2598) 2026-03-26 02:04:11 -07:00
webhook.py feat(gateway): add webhook platform adapter for external event triggers 2026-03-20 06:33:36 -07:00
whatsapp.py chore: remove ~100 unused imports across 55 files (#3016) 2026-03-25 15:02:03 -07:00