Skip to content

Commit

Permalink
chore(batch-exports): Set sock connect timeout to 30s (#25775)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasfarias authored Oct 23, 2024
1 parent 4a25a2f commit afc3628
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posthog/temporal/common/clickhouse.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afc3628

Please sign in to comment.