Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -940,11 +940,11 @@ void ThreadSocketHandler2(void* parg)
if (nErr != WSAEWOULDBLOCK)
LogPrintf("socket error accept INVALID_SOCKET: %d", nErr);
}
else if (nInbound >= GetArg("-maxconnections", 250) - MAX_OUTBOUND_CONNECTIONS)
else if (nInbound >= GetArg("-maxconnections", 125) - MAX_OUTBOUND_CONNECTIONS)
{
LogPrint(BCLog::LogFlags::NET,
"Surpassed max inbound connections maxconnections:%" PRId64 " minus max_outbound:%i",
GetArg("-maxconnections",250),
GetArg("-maxconnections", 125),
MAX_OUTBOUND_CONNECTIONS);

closesocket(hSocket);
Expand Down