← BYTES
Unix IPC·Starter·Ref: 15.1.28
Is a socket sitting in TIME_WAIT a sign of a bug in the application?
Have a question about this video? Mention reference 15.1.28 when you contact us.
a.Yes -- TIME_WAIT only ever appears when a program has crashed
b.TIME_WAIT only exists on Windows, never on Linux or macOS
c.Yes -- TIME_WAIT means the connection was never actually established
d.No -- TIME_WAIT is a normal, expected part of closing a TCP connection cleanly; a healthy, correctly-written server will routinely produce TIME_WAIT sockets as connections close
TIME_WAIT by itself is completely normal and expected -- every orderly TCP close by the active closer produces one. It only becomes an operational concern when the SHEER VOLUME of them (e.g. from extremely high connection churn) starts exhausting a limited resource like ephemeral ports -- see the intermediate/advanced questions for that distinction.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES15128#UnixIPC