Description
Describe the bug
There is a ClientConnectionError in 3.12.4.
- It is not present in earlier versions of the aiohttp (It is not present in 3.12.2 or 3.12.3).
- I have tested with azure-storage-blob 12.25.* and 12.24.* and the error occurs in all versions I've tested.
The log is: "while closing connector: ClientConnectionError('Connection lost: SSL shutdown timed out')"
The error pops up at when using the async BlobClient from azure-storage-blob (azure.storage.blob.aio.BlobClient), but not when using the Sync client.
noteworthy:
- the endpoint is a streaming endpoint (returns a 206)
- The result is still yielded in the end, there is just a 30 second block while the endpoint is trying to close the connection.
To Reproduce
from azure.identity.aio import DefaultAzureCredential
from azure.storage.blob.aio import BlobClient
credential = DefaultAzureCredential()
async with BlobClient(
account_url=AZURE_STORAGE_ACCOUNT_NAME,
container_name=AZURE_STORAGE_CONTAINER_NAME,
blob_name=read_path,
credential=credential,
) as blob_client:
file_bytes = await blob_client.download_blob()
r = await file_bytes.readall()
r
Expected behavior
To return the result without a 30 second block.
Logs/tracebacks
while closing connector: ClientConnectionError('Connection lost: SSL shutdown timed out')
Python Version
$ python --version
3.13.2
aiohttp Version
$ python -m pip show aiohttp
Version: 3.12.4
multidict Version
$ python -m pip show multidict
Version: 6.4.3
propcache Version
$ python -m pip show propcache
Version: 0.3.1
yarl Version
$ python -m pip show yarl
Version: 1.20.0
OS
macOS, aarch64
Related component
Client
Additional context
No response
Code of Conduct
- I agree to follow the aio-libs Code of Conduct