---
title: "522 Connection Timed Out in Cloudflare"
canonical: "https://lemwatch.com/http-status-codes/522/in-cloudflare"
platform: "Cloudflare"
last_verified: "2026-08-11"
source: "https://lemwatch.com"
---

# HTTP 522 Connection Timed Out in Cloudflare

**Platform** — Cloudflare — CDN, WAF, and edge network in front of your origin.

**Where it surfaces** — The Cloudflare edge before your origin ever sees the request. Look at the Ray ID in the response.

## Cause on this platform

TCP handshake with the origin timed out (>15s).

## Fix on this platform

Check origin CPU/network saturation and firewall rules; raise the origin's keep-alive.


## Generic reference

Cloudflare could not negotiate a TCP handshake with the origin server.

_Canonical HTML page: https://lemwatch.com/http-status-codes/522/in-cloudflare_
