Fix bug (returned '' when recv(fd, 0, MSG_DONTWAIT) and connection is OK) that appears in FreeBSD