------------------------------------------------------------ revno: 12662 revision-id: squid3@treenet.co.nz-20131129042251-0lk5dx346f6oci1x parent: squid3@treenet.co.nz-20131129041900-dl9tqppeepvc0ox1 fixes bug(s): http://bugs.squid-cache.org/show_bug.cgi?id=3970 committer: Amos Jeffries branch nick: 3.3 timestamp: Thu 2013-11-28 21:22:51 -0700 message: Bug 3970: max_filedescriptors disabled due to missing setrlimit ------------------------------------------------------------ # Bazaar merge directive format 2 (Bazaar 0.90) # revision_id: squid3@treenet.co.nz-20131129042251-0lk5dx346f6oci1x # target_branch: http://bzr.squid-cache.org/bzr/squid3/3.3 # testament_sha1: 01b5b210daf5b9ac4b61f3b52ca0f31dd80ea71e # timestamp: 2013-11-29 04:30:08 +0000 # source_branch: http://bzr.squid-cache.org/bzr/squid3/3.3 # base_revision_id: squid3@treenet.co.nz-20131129041900-\ # dl9tqppeepvc0ox1 # # Begin patch === modified file 'configure.ac' --- configure.ac 2013-11-20 00:12:53 +0000 +++ configure.ac 2013-11-29 04:22:51 +0000 @@ -2711,7 +2711,6 @@ ;; esac - dnl --with-maxfd present for compatibility with Squid-2. dnl undocumented in ./configure --help to encourage using the Squid-3 directive AC_ARG_WITH(maxfd,, @@ -2719,6 +2718,7 @@ case ${withval} in [[0-9]]*) squid_filedescriptors_num=$withval + AC_MSG_NOTICE([forcing default of $squid_filedescriptors_num filedescriptors (user-forced)]) ;; *) AC_MSG_ERROR(--with-maxfd expects a numeric argument) @@ -2733,6 +2733,7 @@ case ${withval} in [[0-9]]*) squid_filedescriptors_num=$withval + AC_MSG_NOTICE([forcing default of $squid_filedescriptors_num filedescriptors (user-forced)]) ;; *) AC_MSG_ERROR(--with-filedescriptors expects a numeric argument) @@ -2741,10 +2742,9 @@ ]) SQUID_CHECK_DEFAULT_FD_SETSIZE -if test "x$squid_filedescriptors_num" = "x"; then - SQUID_CHECK_MAXFD -else - AC_MSG_NOTICE([forcing use of $squid_filedescriptors_num filedescriptors (user-forced)]) +SQUID_CHECK_MAXFD +if test "x$squid_filedescriptors_num" != "x"; then + AC_MSG_NOTICE([Default number of fieldescriptors: $squid_filedescriptors_num]) fi if test "$squid_filedescriptors_num" -lt 512 ; then AC_MSG_WARN([$squid_filedescriptors_num may not be enough filedescriptors if your])