]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 5312: Startup aborts if OPEN_MAX exceeds RLIMIT_NOFILE (#1551)
authorAlan Coopersmith <alan.coopersmith@oracle.com>
Sun, 19 Nov 2023 03:17:07 +0000 (03:17 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sun, 19 Nov 2023 03:17:14 +0000 (03:17 +0000)
commit0282b74729429d062706be7cf158334f63900b62
tree95408fcd8d49dc0c247408f364d513a4abe815cf
parent569605b9dce14d2543722dfad145fa40248b268c
Bug 5312: Startup aborts if OPEN_MAX exceeds RLIMIT_NOFILE (#1551)

    FATAL: Event loop exited with failure

The DP_POLL ioctl on Solaris fails with EINVAL when the number of
supplied descriptors (OPEN_MAX) is higher than the current RLIMIT_NOFILE
setting. When it comes to the maximum number of descriptors, we should
use Squid_MaxFD (which already reflects RLIMIT_NOFILE setting).
src/comm/ModDevPoll.cc