Is it safe to call for a TCP blocking socket:
if(SOCKET_ERROR != recv(s, NULL, 0, 0))
to detect errors?
I thought it was safe, then I had a situation on the computer that hung on this statement. (was with ssl socket, if that matters). I also tried passing the MSG_PEEK flag with the specified buffer, but I also hung myself there.
Which alternative?
source
share