]> arthur.barton.de Git - ngircd.git/commit
Try to set file descriptor limit to its maximum and show info on startup
authorAlexander Barton <alex@barton.de>
Thu, 28 Mar 2024 09:16:44 +0000 (10:16 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 31 Mar 2024 09:19:48 +0000 (11:19 +0200)
commit34979250004fb2785ed68c9714a42ddef6523a90
tree99f2da39647a4feb842082d5d8ae41705ca3ce0e
parent24e822cff2d0a33c9bfa26fe31d52939bdd3fac7
Try to set file descriptor limit to its maximum and show info on startup

The number of possible parallel connections is limited by the process
file descriptor limit (among other things). Therefore try to upgrade the
current "soft" limit to its "hard" maximum (but limit it to 100000), and
show an information or even warning, wenn still less than the configured
"MaxConnections" setting.

Please note that ngIRCd and its linked libraries (like PAM) need file
descriptors not only for incoming and outgoing IRC connections, but for
reading files and inter-process communication, too! Therefore the actual
connection limit is _less_ than the file descriptor limit!

This introduces the new MAX_FD_LIMIT (100000) #define.
configure.ng
contrib/ngircd.logcheck
src/ngircd/conf.c
src/ngircd/defines.h