|
|
@ -823,8 +823,9 @@ void ThreadSocketHandler2(void* parg) |
|
|
|
|
|
|
|
|
|
|
|
if (hSocket == INVALID_SOCKET) |
|
|
|
if (hSocket == INVALID_SOCKET) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (WSAGetLastError() != WSAEWOULDBLOCK) |
|
|
|
int nErr = WSAGetLastError(); |
|
|
|
printf("socket error accept failed: %d\n", WSAGetLastError()); |
|
|
|
if (nErr != WSAEWOULDBLOCK) |
|
|
|
|
|
|
|
printf("socket error accept failed: %d\n", nErr); |
|
|
|
} |
|
|
|
} |
|
|
|
else if (nInbound >= GetArg("-maxconnections", 125) - MAX_OUTBOUND_CONNECTIONS) |
|
|
|
else if (nInbound >= GetArg("-maxconnections", 125) - MAX_OUTBOUND_CONNECTIONS) |
|
|
|
{ |
|
|
|
{ |
|
|
|