EAGAIN The file descriptor fd refers into a file apart from a socket and continues to be marked nonblocking (O_NONBLOCK), and the write would block. See open up(two) for even more specifics around the O_NONBLOCK flag. EAGAIN or EWOULDBLOCK The file descriptor fd refers to your socket and has become https://www.youtube.com/watch?v=9S7-cKLweYE