Skip to content

Commit 8ff3743

Browse files
committed
Revert "doc: Remove outdated comments"
This reverts commit ee7891a, and moves the comments into the right place.
1 parent 33e31f8 commit 8ff3743

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/init.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,8 @@ bool AppInitParameterInteraction(const ArgsManager& args)
878878
#else
879879
int fd_max = FD_SETSIZE;
880880
#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
881883
nMaxConnections = std::max(std::min<int>(nMaxConnections, fd_max - nBind - MIN_CORE_FILEDESCRIPTORS - MAX_ADDNODE_CONNECTIONS - NUM_FDS_MESSAGE_CAPTURE), 0);
882884
if (nFD < MIN_CORE_FILEDESCRIPTORS)
883885
return InitError(_("Not enough file descriptors available."));

0 commit comments

Comments
 (0)