TCP erreur de connexion 115 Opération en cours, Quelle est la Cause?

Mon application crée une connexion TCP, Cela fonctionne normalement.
Mais dans un serveur de réseau a de nombreux propriété intellectuelle dire

  • 174.X.X.X
  • 54.x.x.x
    comme ce

Lors de l'appel de la connexion TCP (Non bloquant avec délai d'attente de 60 secondes)
IP 174.X.X.X est toujours un succès .
Mais la connexion TCP à même serveur avec ip 54.x.x.x est un échec (la plupart du temps) avec errno 115
measn opération en cours.

Pouvez-vous svp m'expliquer quelles sont les raisons possibles pour errno 115

OS : Linux

Mon TCP conenct code est comme ci-dessous

tcp_connect(......)
{

  int iValOpt = 0;  
  int iLength= 0;

  fcnt((int)(long)SockID,F_SETFL_O_NONBLOCK);

  ret = connect (sockID,(struct sockaddr*)pstSockAdr,uiSockLen);

  if (ret < 0)
  {

        if (errno == EINPROGRESS)
        {
                stTv.tv_sec = 60;
                stTv.tv_usec = 0;
                FD_ZERO(&write_fd);
                FD_SET(sockID,&write_fd);

                iLength = sizeof(int);

                if (0 < select (sockID+1) , NULL,&write_fd,NULL,&stTv);

                {
                        if(0 > getsockopt(sockID,SOL_SOCKET,SO_ERROR,(void*)(&iValOpt),&iLength))
                        {
                                return -1
                        }

                        if (0 != iValOpt)
                        {
                                return -1;
                        }


                        return success;
                }

                else
                {
                        return -1;
                }   

        }
        else
        {
                return -1;
        }
    }

   return success;

}
Qu'advient-il si vous essayez de telnet au 54.x.x.x ip sans l'aide de votre application? Même comportement?
non, Manuel mastic application, beau travail
"Le Non-blocage avec un timeout" est une contradiction dans les termes.

OriginalL'auteur user1340512 | 2012-04-18