It is possible for a socket to have no connection, for example if a TCP socket is waiting in accept. This checks for this condition in case the socket is closed from a different thread.
It is possible for a socket to have no connection, for example if a TCP socket is waiting in accept. This checks for this condition in case the socket is closed from a different thread.