diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2020-09-26 14:56:39 +0000 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2020-09-26 14:56:39 +0000 |
commit | ea93bbeb26948c0ddba39b589bd166eaecf446c8 (patch) | |
tree | 8f9c1dc1263185b197f42bc3492bd0b3edda6aa1 /src/init.cpp | |
parent | 8aa3a4a498742dc42631956ed3599b3fb2b80302 (diff) |
init: Fix incorrect warning "Reducing -maxconnections from N to N-1, because of system limitations"
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 // <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 |