Can a socket be closed from another thread when a send / recv on the same socket is going on?
Suppose one thread is in blocking recv call and another thread closes the s
Yes, it is ok to close the socket from another thread. Any blocked/busy threads that are using that socket will report a suitable error.