Skip to content

Commit ea93bbe

Browse files
init: Fix incorrect warning "Reducing -maxconnections from N to N-1, because of system limitations"
1 parent 8aa3a4a commit ea93bbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ bool AppInitParameterInteraction(const ArgsManager& args)
10191019

10201020
// Trim requested connection counts, to fit into system limitations
10211021
// <int> in std::min<int>(...) to work around FreeBSD compilation issue described in #2695
1022-
nFD = RaiseFileDescriptorLimit(nMaxConnections + MIN_CORE_FILEDESCRIPTORS + MAX_ADDNODE_CONNECTIONS);
1022+
nFD = RaiseFileDescriptorLimit(nMaxConnections + MIN_CORE_FILEDESCRIPTORS + MAX_ADDNODE_CONNECTIONS + nBind);
10231023
#ifdef USE_POLL
10241024
int fd_max = nFD;
10251025
#else

0 commit comments

Comments
 (0)