---
title: "522 Connection Timed Out"
canonical: "https://lemwatch.com/http-status-codes/522"
category: "server-error"
last_verified: "2026-08-11"
source: "https://lemwatch.com"
---

# HTTP 522 Connection Timed Out

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

## What it means

HTTP 522 is a Cloudflare-specific error indicating that the TCP connection to the origin server timed out. Cloudflare tried to connect but the origin didn't respond within 15 seconds.

## Common causes

- Origin server is overloaded
- Network issues between Cloudflare and origin
- Firewall rate-limiting Cloudflare requests
- Origin server has keepalive disabled

## How to fix

- Check origin server resource usage
- Enable TCP keepalive on origin
- Whitelist all Cloudflare IP ranges
- Check for network routing issues

## SEO impact

Site appears down to all visitors and crawlers. Extended 522s will hurt rankings.

## Monitoring tip

LemWatch detects Cloudflare-specific errors and provides targeted troubleshooting advice for CDN-related issues.

**Related:** [504](https://lemwatch.com/http-status-codes/504.md), [521](https://lemwatch.com/http-status-codes/521.md), [524](https://lemwatch.com/http-status-codes/524.md)

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