Interview Prep/Linux/Networking, DNS and firewalls

Clients get `ERR_CONNECTION_RESET` intermittently to a web server; `nstat` shows `TcpExtListenOverflows` rising.

AdvancedTroubleshootingNetworking, DNS and firewalls
Answer

Likely causes → The listen (accept) queue overflows during bursts because the app accepts too slowly or the backlog is too small.

Diagnose →

nstat -az TcpExtListenOverflows TcpExtListenDrops
ss -ltn 'sport = :443'          # Recv-Q vs Send-Q (backlog)
sysctl net.core.somaxconn

Fix → Raise net.core.somaxconn and the app's listen backlog (nginx listen 443 backlog=4096), add workers so accept keeps up.

Prevent → Graph listen overflows; load test with realistic bursts.

All Linux questions Roadmap: Linux

More on Networking, DNS and firewalls