Tagged articles

Connection Reset

4 articles · Page 1 of 1
Raymond Ops
Raymond Ops
Aug 14, 2026 · Operations

How to Diagnose and Fix 502, 504, and Connection Reset Errors in Nginx

This guide explains the distinct causes of 502 Bad Gateway, 504 Gateway Timeout, and Connection Reset errors in Nginx reverse‑proxy setups and provides a step‑by‑step, four‑segment troubleshooting workflow with concrete log examples, shell commands, and configuration recommendations.

502 Bad Gateway504 Gateway TimeoutConfiguration
0 likes · 24 min read
How to Diagnose and Fix 502, 504, and Connection Reset Errors in Nginx
Liangxu Linux
Liangxu Linux
Feb 22, 2023 · Fundamentals

Why Does a TCP Client Send RST When SYN‑ACK Ack Number Mismatches?

The article explains that during TCP's three‑way handshake, if a client receives a SYN‑ACK with an unexpected acknowledgment number, it must send an RST to abort the stale connection, because silently discarding the packet would cause long retransmission delays and prevent the new connection from being established.

Connection ResetRSTSYN-ACK
0 likes · 5 min read
Why Does a TCP Client Send RST When SYN‑ACK Ack Number Mismatches?