/*
* 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
#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
/** 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. */