Interview Prep/Networking/Network Models, TCP, UDP & Ports

What is the TCP listen backlog and what happens when it overflows?

AdvancedConceptNetwork Models, TCP, UDP & Ports
Answer

Two queues per listening socket: the SYN queue for half-open connections and the accept queue for completed handshakes waiting for accept(). The accept queue size is min(backlog argument, net.core.somaxconn). When it is full, the kernel drops the final ACK or the SYN, and clients see slow connects or timeouts.

ss -ltn        # Recv-Q on LISTEN = current accept queue, Send-Q = max
nstat -az TcpExtListenOverflows
All Networking questions Roadmap: Networking for DevOps

More on Network Models, TCP, UDP & Ports