I have a recv call to a socket and the return value from recv is 0 and
the errno is EAGAIN. There are lots of discussions around this but i
couldnt get a clear picture anywhere.
What are the chances of recv returning 0 and EAGAIN? The manual says
only if recv is -1, you should check for EAGAIN. Should i ignore the
value of errno if recv returns a 0?