← BYTES
Unix IPC·Starter·Ref: 15.1.22

In TCP, what does the connection state CLOSE_WAIT mean?

Have a question about this video? Mention reference 15.1.22 when you contact us.

a.The remote peer hasn't connected yet
b.The remote peer has already closed its end of the connection, and this side is now waiting for its OWN application to call close() on the socket
c.The connection is encrypting data before closing
d.Both sides have fully closed and the connection no longer exists
CLOSE_WAIT means the kernel has already received a FIN from the remote peer (so the peer is done sending), but the LOCAL application hasn't yet called close() on its end of the socket -- the connection is waiting on this side's own code to finish up, not on the network.

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#BYTES15122#UnixIPC