fcntl(sock.socket, F_SETFL, O_NONBLOCK);