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
More on Network Models, TCP, UDP & Ports
What are the layers of the OSI model, and why does a DevOps engineer care?BeginnerHow does the TCP/IP model map to the OSI model?BeginnerWhat is the difference between TCP and UDP?BeginnerDescribe the TCP three-way handshake.BeginnerHow does TCP close a connection, and what is TIME_WAIT?IntermediateWhat is a port, and what are well-known, registered and ephemeral ranges?Beginner