Stop burning time on connection resets with ss state filtering

Networking & Firewall (Ss/Netstat/Iptables/Nftables/Curl)

Stop burning time on connection resets with ss state filtering

🧩 The Challenge

Dealing with a service that intermittently drops connections is the absolute worst, especially when you have thousands of sockets in a CLOSE_WAIT state. It’s like looking for a needle in a haystack of half-dead networking junk.

💡 The Fix

Use the state filter in ss to ignore the noise and grab only the connections that are actually failing or stuck. You’ll save yourself from staring at a scrolling wall of text that tells you absolutely nothing.

ss -tan state established state time-wait state close-wait

⚙️ Why It Works

Passing multiple state arguments to ss acts like an OR operator, pulling just the specific lifecycle stages you actually care about for your debugging session. It effectively ignores the thousands of listening or non-relevant sockets hogging your terminal.

🚀 Pro-Tip: Add -p to see exactly which PID is clinging to those stubborn sockets.

Linux Tips & Tricks | © ngelinux.com | 9/26/2026

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted