-CHANGES - OpenPrinting CUPS 2.4.10 - (2024-06-18)
-================================================
+CHANGES - OpenPrinting CUPS
+===========================
+
+
+Changes in CUPS v2.4.11 (YYYY-MM-DD)
+------------------------------------
+
+- Updated the maximum file descriptor limit for `cupsd` to 64k-1 (Issue #989)
+
Changes in CUPS v2.4.10 (2024-06-18)
------------------------------
+------------------------------------
- Fixed error handling when reading a mixed `1setOf` attribute.
- Fixed scheduler start if there is only domain socket to listen on (Issue #985)
#endif /* HAVE_DBUS_THREADS_INIT */
/*
- * Set the maximum number of files...
+ * Set the maximum number of files, which for practical reasons can be limited
+ * to the number of TCP port number values (64k-1)...
*/
getrlimit(RLIMIT_NOFILE, &limit);
#if !defined(HAVE_POLL) && !defined(HAVE_EPOLL) && !defined(HAVE_KQUEUE)
- if (limit.rlim_max > FD_SETSIZE)
+ if ((MaxFDs = limit.rlim_max) > FD_SETSIZE)
MaxFDs = FD_SETSIZE;
- else
-#endif /* !HAVE_POLL && !HAVE_EPOLL && !HAVE_KQUEUE */
-#ifdef RLIM_INFINITY
- if (limit.rlim_max == RLIM_INFINITY)
- MaxFDs = 16384;
- else
+#else
+ if ((MaxFDs = limit.rlim_max) > 65535)
+ MaxFDs = 65535;
#endif /* RLIM_INFINITY */
- MaxFDs = limit.rlim_max;
limit.rlim_cur = (rlim_t)MaxFDs;