Tyson Cung
dcf1ea4287
fix(telegram): add download timeout to prevent polling loop hang
...
When downloading large files via Telegram, if the stream stalls mid-download
(e.g. no Content-Length header, network congestion), the polling loop hangs
indefinitely since reader.read() has no timeout.
Changes:
- Add timeoutMs option to fetchRemoteMedia, passed through to fetchWithSsrFGuard
- Add per-chunk timeout (30s default) to readResponseWithLimit via Promise.race
- Set 30s download timeout for Telegram media fetches
This ensures stalled downloads are aborted and the polling loop continues
processing subsequent messages.
Fixes #40074
2026-03-09 08:21:43 +05:30
..
2026-03-08 18:40:15 +00:00
2026-03-08 18:23:49 -07:00
2026-03-08 18:40:14 +00:00
2026-03-09 00:25:43 +00:00
2026-03-03 02:53:13 +00:00
2026-03-08 23:38:24 +00:00
2026-03-08 18:23:49 -07:00
2026-03-08 18:23:49 -07:00
2026-03-08 19:49:15 -04:00
2026-03-08 11:56:01 -07:00
2026-03-08 14:46:33 -07:00
2026-03-08 03:11:24 +00:00
2026-03-08 02:16:03 +00:00
2026-03-09 01:50:42 +01:00
2026-03-08 19:07:28 +03:00
2026-03-05 09:38:12 +01:00
2026-03-07 20:33:50 +00:00
2026-03-09 01:50:42 +01:00
2026-03-08 00:05:24 +00:00
2026-03-03 20:14:41 -05:00
2026-03-07 16:50:35 +00:00
2026-03-09 08:21:43 +05:30
2026-03-08 05:12:48 +00:00
2026-03-08 18:40:15 +00:00
2026-03-08 23:46:10 +00:00
2026-03-08 02:16:03 +00:00
2026-03-08 23:38:24 +00:00
2026-03-08 18:40:14 +00:00
2026-03-08 10:59:16 -07:00
2026-03-07 08:14:06 -08:00
2026-03-08 02:16:03 +00:00
2026-03-06 11:21:03 -05:00
2026-03-08 18:13:35 -07:00
2026-03-08 00:05:24 +00:00
2026-03-08 10:59:16 -07:00
2026-03-08 00:05:24 +00:00
2026-03-07 23:35:55 +00:00
2026-03-08 01:27:05 +00:00
2026-03-09 08:21:43 +05:30
2026-03-07 22:50:27 +00:00
2026-03-07 23:13:13 +03:00
2026-03-07 17:40:34 -08:00
2026-03-08 16:17:28 -07:00
2026-03-05 20:05:59 -06:00
2026-03-07 23:31:25 +00:00
2026-03-08 23:38:24 +00:00
2026-03-03 00:15:15 +00:00
2026-03-07 16:02:37 -08:00
2026-03-08 17:57:46 -07:00
2026-03-08 02:55:15 +00:00
2026-03-08 16:07:04 -07:00
2026-03-08 16:07:04 -07:00
2026-03-08 19:10:48 +03:00
2026-03-08 19:10:48 +03:00
2026-03-08 19:10:48 +03:00
2026-03-05 19:24:43 -05:00
2026-03-05 19:24:43 -05:00
2026-03-05 19:24:43 -05:00
2026-03-03 02:41:52 -05:00
2026-03-03 02:41:52 -05:00