Tagged articles
12 articles
Page 1 of 1
Linux Tech Enthusiast
Linux Tech Enthusiast
Sep 3, 2025 · Backend Development

How to Diagnose and Fix 502 Bad Gateway Errors in Nginx

This article explains what a 502 Bad Gateway response means, how Nginx as a reverse‑proxy generates it, common root causes such as upstream timeouts or crashes, and step‑by‑step methods to locate the problem using logs, monitoring data and configuration checks.

502DebuggingHTTP status code
0 likes · 15 min read
How to Diagnose and Fix 502 Bad Gateway Errors in Nginx
Liangxu Linux
Liangxu Linux
Oct 31, 2024 · Information Security

Why Does a TCP Connection Reset? Understanding RST Packets Across All Stages

This article explains the purpose of TCP RST packets, how they appear during connection establishment, data transfer, firewall enforcement, and teardown, and provides practical techniques for distinguishing legitimate resets from spoofed or policy‑driven resets to improve network troubleshooting and security.

RSTTCPinformation security
0 likes · 10 min read
Why Does a TCP Connection Reset? Understanding RST Packets Across All Stages
Open Source Linux
Open Source Linux
Oct 18, 2024 · Information Security

Why Do TCP Connections Send RST Packets? Causes and Analysis Explained

This article explains what TCP RST packets are, why they appear during connection establishment, data transfer, and termination, and how to diagnose server‑side, client‑side, and firewall‑induced resets by examining sequence diagrams, common error conditions, and TTL differences.

RSTSecurityTCP
0 likes · 9 min read
Why Do TCP Connections Send RST Packets? Causes and Analysis Explained
Liangxu Linux
Liangxu Linux
Oct 10, 2024 · Fundamentals

Why Does a TCP Connection Reset? Understanding RST Packets Across All Stages

This article explains what TCP RST packets are, why they appear during connection establishment, data transfer, and termination, and how to analyze their causes—including server refusals, client errors, firewall policies, retransmission limits, idle timeouts, and bypass blocking—using sequence diagrams and practical diagnostics.

RSTTCPprotocol
0 likes · 11 min read
Why Does a TCP Connection Reset? Understanding RST Packets Across All Stages
Open Source Linux
Open Source Linux
Sep 26, 2024 · Information Security

Why Does a TCP Connection Send RST Packets? Deep Dive into Causes and Analysis

TCP RST packets, used to abruptly terminate or reject connections, appear at various stages—handshake, data transfer, and teardown—and can stem from server port closures, connection limits, malformed SYNs, firewall policies, timeouts, or middlebox interventions, with each scenario identifiable through detailed packet‑level analysis.

RSTTCPfirewall
0 likes · 9 min read
Why Does a TCP Connection Send RST Packets? Deep Dive into Causes and Analysis
Tencent Architect
Tencent Architect
Mar 27, 2024 · Operations

Why Does TCP Send RST? Deep Dive into Causes and Debugging Techniques

This article explains the fundamentals of TCP RST packets, distinguishes active and passive resets, outlines common kernel scenarios that generate them, and provides practical debugging methods using tcpdump, bpftrace, and source‑code analysis to resolve real‑world network incidents.

BPFDebuggingKernel
0 likes · 20 min read
Why Does TCP Send RST? Deep Dive into Causes and Debugging Techniques
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?
NiuNiu MaTe
NiuNiu MaTe
Jan 2, 2022 · Fundamentals

Why Receiving a TCP RST Doesn’t Always Close the Connection

This article explains the purpose of the TCP RST flag, how the kernel and application layers detect it, the various scenarios that trigger RST, why an RST may not terminate a connection, and the security implications of RST attacks.

Linux kernelRSTSecurity
0 likes · 15 min read
Why Receiving a TCP RST Doesn’t Always Close the Connection
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Nov 14, 2019 · Fundamentals

How to Replace TCP FIN with RST Using SO_LINGER in Go

This article explains why TIME_WAIT occurs, its resource impact, and demonstrates two optimization strategies—accelerating TIME_WAIT reclamation and using the SO_LINGER option to send an RST packet instead of the normal FIN handshake, with complete Go client and server examples and packet‑capture analysis.

RSTSO_LINGERTCP
0 likes · 8 min read
How to Replace TCP FIN with RST Using SO_LINGER in Go
Qunar Tech Salon
Qunar Tech Salon
Mar 8, 2018 · Backend Development

Analyzing Intermittent Timeouts and RST Packets in Apache HttpClient Calls

This article investigates an intermittent timeout issue caused by a Java Apache HttpClient implementation that leaks connections, explains why numerous RST packets appear during TLS shutdown, and presents experiments and code revisions that clarify the TCP/TLS interaction and proper resource handling.

Apache HttpClientConnection leakHTTP
0 likes · 9 min read
Analyzing Intermittent Timeouts and RST Packets in Apache HttpClient Calls