We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 33e31f8 commit 8ff3743Copy full SHA for 8ff3743
src/init.cpp
@@ -878,6 +878,8 @@ bool AppInitParameterInteraction(const ArgsManager& args)
878
#else
879
int fd_max = FD_SETSIZE;
880
#endif
881
+ // Trim requested connection counts, to fit into system limitations
882
+ // <int> in std::min<int>(...) to work around FreeBSD compilation issue described in #2695
883
nMaxConnections = std::max(std::min<int>(nMaxConnections, fd_max - nBind - MIN_CORE_FILEDESCRIPTORS - MAX_ADDNODE_CONNECTIONS - NUM_FDS_MESSAGE_CAPTURE), 0);
884
if (nFD < MIN_CORE_FILEDESCRIPTORS)
885
return InitError(_("Not enough file descriptors available."));
0 commit comments