Grokking Operating Systems and Networking for Backend Engineers
Vote

0% completed

​

Closing Connections and the Time Wait State

A client placed 500 orders, each on its own connection, and closed every connection after reading the reply. Then ss counted the connections that were still in the kernel on each side:

Output:

500 orders, each on its own connection TIME-WAIT sockets on the client: 501 TIME-WAIT sockets on the server: 0

Every connection was closed, yet the client's kernel was still keeping 501 of them, the 500 new ones and one from an earlier test, and it would keep each for a full minute. The server kept none. When the same test ran with the server closing first, the result flipped.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content