Grokking Operating Systems and Networking for Backend Engineers
Vote

0% completed

​

Keepalives, Resets and Half Open Connections

Checkout keeps a pool of open connections to its database. One evening, the database machine loses its network for good, and four of Checkout's pooled connections are affected. Six and a half seconds later, ss on Checkout still shows two of them as healthy:

Output:

ESTAB 0 0 10.0.0.1:41002 10.0.0.2:8080 ESTAB 0 6 10.0.0.1:41005 10.0.0.2:8080 timer:(on,045ms,4)

The first connection has no data waiting and no timer, so nothing will ever tell the kernel that the other side is gone

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content