From afc36283a99031859a6f59b371f38e6dced38c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Far=C3=ADas=20Santana?= Date: Thu, 24 Oct 2024 00:02:47 +0200 Subject: [PATCH] chore(batch-exports): Set sock connect timeout to 30s (#25775) --- posthog/temporal/common/clickhouse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/temporal/common/clickhouse.py b/posthog/temporal/common/clickhouse.py index 570cfe8d5bb5e..25a20cf1f51cc 100644 --- a/posthog/temporal/common/clickhouse.py +++ b/posthog/temporal/common/clickhouse.py @@ -461,7 +461,7 @@ async def get_client( # ssl_context.load_verify_locations(settings.CLICKHOUSE_CA) # elif ssl_context.verify_mode is ssl.CERT_REQUIRED: # ssl_context.load_default_certs(ssl.Purpose.SERVER_AUTH) - timeout = aiohttp.ClientTimeout(total=None, connect=None, sock_connect=None, sock_read=None) + timeout = aiohttp.ClientTimeout(total=None, connect=None, sock_connect=30, sock_read=None) if team_id is None: max_block_size = settings.CLICKHOUSE_MAX_BLOCK_SIZE_DEFAULT