If you are using Cloudflare as a proxied web server, it will provide many benefits about performance (assets caching, prevent DDOS and cheap CDN). But sometimes, you will face to this error “522 Connection Time out”.
The problems caused by :
- Networking (CF can’t touch origin server : Firewall blocking, Network Layer #1,#2,#3 issue)
- Timeout (origin server process too long than 90 seconds)
- Empty or invalid response from origin server
- No or big HTTP headers (> 8Kb)
- Failed TCP handshake