diff options
| author | Alexander Barton <alex@barton.de> | 2024-03-28 10:16:44 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2024-03-31 11:19:48 +0200 |
| commit | 34979250004fb2785ed68c9714a42ddef6523a90 (patch) | |
| tree | 99f2da39647a4feb842082d5d8ae41705ca3ce0e /contrib | |
| parent | 24e822cff2d0a33c9bfa26fe31d52939bdd3fac7 (diff) | |
| download | ngircd-34979250004fb2785ed68c9714a42ddef6523a90.tar.gz ngircd-34979250004fb2785ed68c9714a42ddef6523a90.zip | |
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.
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/ngircd.logcheck | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/ngircd.logcheck b/contrib/ngircd.logcheck index 1224551f..905162d6 100644 --- a/contrib/ngircd.logcheck +++ b/contrib/ngircd.logcheck @@ -12,6 +12,7 @@ ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ngircd\[[0-9]+\]: Deleted ".*" \(".*"\) from G-Line list \(expired\)\.$ ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ngircd\[[0-9]+\]: Enabled link compression \(zlib\) on connection [0-9]+\.$ ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ngircd\[[0-9]+\]: Establishing connection for ".*" to ".*:[0-9]+" \(.*\), socket [0-9]+ \.\.\.$ +^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ngircd\[[0-9]+\]: File descriptor limit is [0-9]+; "MaxConnections" is (not set|set to [0-9]+)\.$ ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ngircd\[[0-9]+\]: Got (valid server|unchecked peer) certificate: .*\.$ ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ngircd\[[0-9]+\]: Got signal "(Hangup|Terminated)" \.\.\.$ ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ ngircd\[[0-9]+\]: Got valid OPER for ".*" from ".*", user is an IRC operator now\.$ |