printf("#recv_response. n = %d, len = %d#\n", n, len); if (errno == EAGAIN|| errno == EWOULDBLOCK) {#recv_response. n = -1, len = 6029#
#recv_response. errno = <em
当没有数据包要获取时,我会得到errno EAGAIN,但当网络断开时,我也会得到EAGAIN,所以我无法区分这两种情况。= EAGAIN){ // It is always this error, so it's never entering here
qDebug()<< "Disconnected