init: Fix incorrect warning "Reducing -maxconnections from N to N-1, because of system limitations"

This commit is contained in:
practicalswift 2020-09-26 14:56:39 +00:00
parent 8aa3a4a498
commit ea93bbeb26

View File

@ -1019,7 +1019,7 @@ bool AppInitParameterInteraction(const ArgsManager& args)
// Trim requested connection counts, to fit into system limitations
// <int> in std::min<int>(...) to work around FreeBSD compilation issue described in #2695
nFD = RaiseFileDescriptorLimit(nMaxConnections + MIN_CORE_FILEDESCRIPTORS + MAX_ADDNODE_CONNECTIONS);
nFD = RaiseFileDescriptorLimit(nMaxConnections + MIN_CORE_FILEDESCRIPTORS + MAX_ADDNODE_CONNECTIONS + nBind);
#ifdef USE_POLL
int fd_max = nFD;
#else