Clarify check in the socket liveness check

This clarifies the usage of recv()'s return value and error
code check to judge whether a socket is still alive.