From 6708dbbbdc9905a59b81c00a8489a0fd1318a2f6 Mon Sep 17 00:00:00 2001 From: samm81 Date: Thu, 9 Oct 2025 15:55:43 +0800 Subject: [PATCH] fix: fix ssl behavior in `request` - `ClientConnectionError` in `aiohttp` can wrap SSL handshake and certificate verification errors - Retrying those hides the real cause and produced `TransientNetworkError` instead of the expected certificate error - Removing `ClientConnectionError` from the transient list lets SSL errors surface correctly --- vdirsyncer/http.py | 1 - 1 file changed, 1 deletion(-) diff --git a/vdirsyncer/http.py b/vdirsyncer/http.py index 437a977..bb5f6d8 100644 --- a/vdirsyncer/http.py +++ b/vdirsyncer/http.py @@ -268,7 +268,6 @@ async def request( except ( ServerDisconnectedError, ServerTimeoutError, - ClientConnectionError, asyncio.TimeoutError, ) as e: # Retry only if the method is safe/idempotent for our DAV use