mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-09 22:37:55 +00:00
less noisy in debug
This commit is contained in:
parent
66fb23c4b8
commit
2c6318caae
@ -462,9 +462,9 @@ CNode* ConnectNode(CAddress addrConnect, const char *pszDest)
|
|||||||
|
|
||||||
|
|
||||||
/// debug print
|
/// debug print
|
||||||
printf("trying connection %s lastseen=%.1fhrs\n",
|
// printf("trying connection %s lastseen=%.1fhrs\n",
|
||||||
pszDest ? pszDest : addrConnect.ToString().c_str(),
|
// pszDest ? pszDest : addrConnect.ToString().c_str(),
|
||||||
pszDest ? 0 : (double)(GetAdjustedTime() - addrConnect.nTime)/3600.0);
|
// pszDest ? 0 : (double)(GetAdjustedTime() - addrConnect.nTime)/3600.0);
|
||||||
|
|
||||||
// Connect
|
// Connect
|
||||||
SOCKET hSocket;
|
SOCKET hSocket;
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user