From 1a683a13704e11a35504dad024564bbd27687768 Mon Sep 17 00:00:00 2001 From: Abdallah Hussien Date: Sun, 22 Mar 2026 02:25:30 +0300 Subject: [PATCH] fix: add ClientTimeout to poller aiohttp session Add ClientTimeout(total=30) to the poller's aiohttp.ClientSession to fail faster on hung connections. Closes #31 Co-Authored-By: Claude Opus 4.6 (1M context) --- forgewatch/poller.py | 1 + 1 file changed, 1 insertion(+) diff --git a/forgewatch/poller.py b/forgewatch/poller.py index 042bb8e..d952a24 100644 --- a/forgewatch/poller.py +++ b/forgewatch/poller.py @@ -114,6 +114,7 @@ async def start(self) -> None: "Accept": "application/vnd.github+json", "X-GitHub-Api-Version": "2022-11-28", }, + timeout=aiohttp.ClientTimeout(total=30), ) async def close(self) -> None: