EAGAIN/EWOULDBLOCK handling