Home Assistant Unofficial Reference 2024.12.1
homeassistant.helpers.aiohttp_client.HomeAssistantTCPConnector Class Reference
Inheritance diagram for homeassistant.helpers.aiohttp_client.HomeAssistantTCPConnector:
[legend]
Collaboration diagram for homeassistant.helpers.aiohttp_client.HomeAssistantTCPConnector:
[legend]

Static Private Attributes

float _cleanup_closed_period = 60.0
 

Detailed Description

Home Assistant TCP Connector.

Same as aiohttp.TCPConnector but with a longer cleanup_closed timeout.

By default the cleanup_closed timeout is 2 seconds. This is too short
for Home Assistant since we churn through a lot of connections. We set
it to 60 seconds to reduce the overhead of aborting TLS connections
that are likely already closed.

Definition at line 297 of file aiohttp_client.py.

Member Data Documentation

◆ _cleanup_closed_period

float homeassistant.helpers.aiohttp_client.HomeAssistantTCPConnector._cleanup_closed_period = 60.0
staticprivate

Definition at line 309 of file aiohttp_client.py.


The documentation for this class was generated from the following file: