TCP connections
TIME-WAIT
The state the side that closes first keeps for a while, so stray packets cannot join a new connection.
Sixty seconds on Linux. On busy clients opening many short connections, TIME-WAIT entries can pile up and use up ephemeral ports.