mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-02 03:31:35 +02:00
init: Fix incorrect warning "Reducing -maxconnections from N to N-1, because of system limitations"
This commit is contained in:
@ -1019,7 +1019,7 @@ bool AppInitParameterInteraction(const ArgsManager& args)
|
|||||||
|
|
||||||
// Trim requested connection counts, to fit into system limitations
|
// Trim requested connection counts, to fit into system limitations
|
||||||
// <int> in std::min<int>(...) to work around FreeBSD compilation issue described in #2695
|
// <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
|
#ifdef USE_POLL
|
||||||
int fd_max = nFD;
|
int fd_max = nFD;
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user