From ea93bbeb26948c0ddba39b589bd166eaecf446c8 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Sat, 26 Sep 2020 14:56:39 +0000 Subject: [PATCH] init: Fix incorrect warning "Reducing -maxconnections from N to N-1, because of system limitations" --- src/init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/init.cpp b/src/init.cpp index 5ad807cbac..7eb0834f99 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1019,7 +1019,7 @@ bool AppInitParameterInteraction(const ArgsManager& args) // Trim requested connection counts, to fit into system limitations // in std::min(...) 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