Do not use socket.sendall() on non-blocking socket.