# asyncio.exceptions.TimeoutError: SSL handshake timeout

- **ID:** `python/aiohttp-ssl-handshake-timeout`
- **Domain:** python
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

SSL handshake takes longer than the default timeout, often due to network latency or server issues.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.10 | active | — | — |

## Workarounds

1. **** (85% success)
   ```
   timeout=aiohttp.ClientTimeout(sock_connect=10, sock_read=30) # adjust sock_connect
   ```
2. **** (70% success)
   ```
   Use a custom SSL context with longer handshake timeout: ssl.create_default_context()
   ```

## Dead Ends

- **** —  (60% fail)
- **** —  (40% fail)
