Skip to content

Commit

Permalink
init: Fix incorrect warning "Reducing -maxconnections from N to N-1, …
Browse files Browse the repository at this point in the history
…because of system limitations"
  • Loading branch information
practicalswift committed Sep 26, 2020
1 parent 8aa3a4a commit ea93bbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea93bbe

Please sign in to comment.