522 Connection Timed Out

Cloudflare's TCP handshake with the origin did not complete within the allowed time.

Status

HTTP/1.1 522 Connection Timed Out

Details

522 is a failure to connect rather than a failure to respond. Cloudflare sent a SYN and never completed the handshake, so the request never reached the application at all.

It usually means packets are being dropped rather than refused: a firewall silently discarding traffic, an overloaded origin unable to accept new connections, or a routing problem between the edge and the origin.

Common causes

How to fix it

As the client

As the server

Examples

GET / HTTP/1.1
Host: www.example.com

HTTP/1.1 522
Server: cloudflare

See also