|
|
@ -359,7 +359,7 @@ bool static ConnectSocketDirectly(const CService &addrConnect, SOCKET& hSocketRe |
|
|
|
int nRet = select(hSocket + 1, NULL, &fdset, NULL, &timeout); |
|
|
|
int nRet = select(hSocket + 1, NULL, &fdset, NULL, &timeout); |
|
|
|
if (nRet == 0) |
|
|
|
if (nRet == 0) |
|
|
|
{ |
|
|
|
{ |
|
|
|
printf("connection timeout\n"); |
|
|
|
//printf("connection timeout\n");
|
|
|
|
closesocket(hSocket); |
|
|
|
closesocket(hSocket); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
@ -393,7 +393,7 @@ bool static ConnectSocketDirectly(const CService &addrConnect, SOCKET& hSocketRe |
|
|
|
else |
|
|
|
else |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
{ |
|
|
|
{ |
|
|
|
printf("connect() failed: %i\n",WSAGetLastError()); |
|
|
|
//printf("connect() failed: %i\n",WSAGetLastError());
|
|
|
|
closesocket(hSocket); |
|
|
|
closesocket(hSocket); |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|