Hi,
this patch fixes some issues in the client communication code of the
responders.
The man pages of send() and recv() tell to following:
EAGAIN or EWOULDBLOCK
The socket is marked non-blocking and the requested operation would
block. POSIX.1-2001 allows either error to be returned for this case,
and does not require these constants to have the same value, so a
portable application should check for both possibilities.
So I added a check for EWOULDBLOCK after the calls to send() and recv()
and return EAGAIN to the caller.
The other issues are mentioned in the commit message.
bye,
Sumit