]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/defines.h
Try to set file descriptor limit to its maximum and show info on startup
[ngircd-alex.git] / src / ngircd / defines.h
index 7ce30e572862f8cd04fb05ced54ec4d072e53e47..e3df44b9fc36de1fe6b3dffd7cd077ad98c4c896 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * ngIRCd -- The Next Generation IRC Daemon
- * Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors.
+ * Copyright (c)2001-2024 Alexander Barton (alex@barton.de) and Contributors.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -39,7 +39,7 @@
 #define LINE_LEN 1024
 
 /** Max. length of a log message. */
-#define MAX_LOG_MSG_LEN 256
+#define MAX_LOG_MSG_LEN 1024
 
 /** Max. length of file name. */
 #define FNAME_LEN 256
@@ -64,6 +64,9 @@
 /** Size of buffer for PAM service name. */
 #define MAX_PAM_SERVICE_NAME_LEN 64
 
+/** Maximum number of file descriptors to request. */
+#define MAX_FD_LIMIT 100000
+
 
 /* Hard-coded (default) options */
 
 /** Max. host name length (including NULL). */
 #define CLIENT_HOST_LEN 64
 
-/** Max. mask lenght (including NULL). */
+/** Max. mask length (including NULL). */
 #define MASK_LEN (2 * CLIENT_HOST_LEN)
 
 /** Max. length of all client modes (including NULL). */
 /** Size of the read buffer of a connection in bytes. */
 #define READBUFFER_LEN 2048
 
-/** Maximum size of the read buffer of a connection in bytes. */
-#define READBUFFER_MAX_LEN 65535
-
-/** Maximum size of the read buffer of a server link connection in bytes. */
-#define READBUFFER_SLINK_LEN 65536
-
 /** Size that triggers write buffer flushing if more space is needed. */
 #define WRITEBUFFER_FLUSH_LEN 4096
 
 #define WRITEBUFFER_MAX_LEN 32768
 
 /** Maximum size of the write buffer of a server link connection in bytes. */
-#define WRITEBUFFER_SLINK_LEN READBUFFER_SLINK_LEN
+#define WRITEBUFFER_SLINK_LEN 65536
 
 
 /* IRC/IRC+ protocol */
 
 /* Defaults and limits for IRC commands */
 
-/** Max. number of elemets allowed in channel invite and ban lists. */
+/** Max. number of elements allowed in channel invite and ban lists. */
 #define MAX_HNDL_CHANNEL_LISTS 50
 
 /** Max. number of channel modes with arguments per MODE command. */