rpms/squid/devel squid-2.6.STABLE5-fd-config.patch, NONE, 1.1 .cvsignore, 1.21, 1.22 sources, 1.23, 1.24 squid.spec, 1.78, 1.79 squid-2.6.STABLE4-aio-done.patch, 1.1, NONE squid-2.6.STABLE4-cache-peer.patch, 1.1, NONE squid-2.6.STABLE4-compile.patch, 1.1, NONE squid-2.6.STABLE4-configure.patch, 1.1, NONE squid-2.6.STABLE4-coss-gcc.patch, 1.1, NONE squid-2.6.STABLE4-coss.patch, 1.1, NONE squid-2.6.STABLE4-delay-pools-2.patch, 1.1, NONE squid-2.6.STABLE4-delay-pools.patch, 1.1, NONE squid-2.6.STABLE4-fd-config-updated.patch, 1.1, NONE squid-2.6.STABLE4-forward.patch, 1.1, NONE squid-2.6.STABLE4-http-header.patch, 1.1, NONE squid-2.6.STABLE4-log.patch, 1.1, NONE squid-2.6.STABLE4-mem-leak-ncsa.patch, 1.1, NONE squid-2.6.STABLE4-mem-leak.patch, 1.1, NONE squid-2.6.STABLE4-reconfigure.patch, 1.1, NONE squid-2.6.STABLE4-snmp.patch, 1.1, NONE squid-2.6.STABLE4-syslog.patch, 1.1, NONE squid-2.6.STABLE4-time.patch, 1.1, NONE
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Tue Nov 7 15:06:55 UTC 2006
Author: stransky
Update of /cvs/dist/rpms/squid/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv26729
Modified Files:
.cvsignore sources squid.spec
Added Files:
squid-2.6.STABLE5-fd-config.patch
Removed Files:
squid-2.6.STABLE4-aio-done.patch
squid-2.6.STABLE4-cache-peer.patch
squid-2.6.STABLE4-compile.patch
squid-2.6.STABLE4-configure.patch
squid-2.6.STABLE4-coss-gcc.patch squid-2.6.STABLE4-coss.patch
squid-2.6.STABLE4-delay-pools-2.patch
squid-2.6.STABLE4-delay-pools.patch
squid-2.6.STABLE4-fd-config-updated.patch
squid-2.6.STABLE4-forward.patch
squid-2.6.STABLE4-http-header.patch
squid-2.6.STABLE4-log.patch
squid-2.6.STABLE4-mem-leak-ncsa.patch
squid-2.6.STABLE4-mem-leak.patch
squid-2.6.STABLE4-reconfigure.patch
squid-2.6.STABLE4-snmp.patch squid-2.6.STABLE4-syslog.patch
squid-2.6.STABLE4-time.patch
Log Message:
update to the latest upstream
squid-2.6.STABLE5-fd-config.patch:
configure | 28 ++++++++++++++++++++++++++++
configure.in | 10 ++++++++++
include/autoconf.h.in | 3 +++
src/cf.data.pre | 19 +++++++++++++++++++
src/main.c | 3 ++-
src/structs.h | 3 +++
src/tools.c | 15 +++++++++++++++
7 files changed, 80 insertions(+), 1 deletion(-)
--- NEW FILE squid-2.6.STABLE5-fd-config.patch ---
--- squid-2.6.STABLE1/configure.fd 2006-07-26 09:58:41.000000000 +0200
+++ squid-2.6.STABLE1/configure 2006-07-26 09:58:41.000000000 +0200
@@ -2970,6 +2970,34 @@
AMDEP_FALSE=
fi
+if false; then
+ USE_FD_CONFIG_TRUE=
+ USE_FD_CONFIG_FALSE='#'
+else
+ USE_FD_CONFIG_TRUE='#'
+ USE_FD_CONFIG_FALSE=
+fi
+# Check whether --enable-fd-config or --disable-fd-config was given.
+if test "${enable_fd_config+set}" = set; then
+ enableval="$enable_fd_config"
+ if test "$enableval" = "yes" ; then
+ echo "File descriptor config enabled"
+ cat >> confdefs.h <<\EOF
+#define FD_CONFIG 1
+EOF
+
+
+
+if true; then
+ USE_FD_CONFIG_TRUE=
+ USE_FD_CONFIG_FALSE='#'
+else
+ USE_FD_CONFIG_TRUE='#'
+ USE_FD_CONFIG_FALSE=
+fi
+ fi
+
+fi
--- squid-2.6.STABLE1/include/autoconf.h.in.fd 2006-07-26 09:58:41.000000000 +0200
+++ squid-2.6.STABLE1/include/autoconf.h.in 2006-07-26 09:58:41.000000000 +0200
@@ -36,6 +36,9 @@
/* Traffic management via "delay pools". */
#undef DELAY_POOLS
+/* Filedesc managment */
+#undef FD_CONFIG
+
/* Enable following X-Forwarded-For headers */
#undef FOLLOW_X_FORWARDED_FOR
--- squid-2.6.STABLE1/configure.in.fd 2006-07-26 09:58:41.000000000 +0200
+++ squid-2.6.STABLE1/configure.in 2006-07-26 09:58:41.000000000 +0200
@@ -501,6 +501,16 @@
fi
])
+AM_CONDITIONAL(USE_FD_CONFIG, false)
+AC_ARG_ENABLE(fd-config,
+[ --enable-fd-config Enable filedesc config to configure maximal number of used filedescriptors],
+[ if test "$enableval" = "yes" ; then
+ echo "Filedesc config enabled"
+ AC_DEFINE(FD_CONFIG)
+ AM_CONDITIONAL(USE_FD_CONFIG, true)
+ fi
+])
+
dnl This is a developer only option. Developers know how to set defines
dnl
dnl AC_ARG_ENABLE(mem-gen-trace,
--- squid-2.6.STABLE1/src/cf.data.pre.fd 2006-07-26 09:58:41.000000000 +0200
+++ squid-2.6.STABLE1/src/cf.data.pre 2006-07-26 10:05:54.000000000 +0200
@@ -5027,4 +5027,23 @@
or response to be rejected.
DOC_END
+NAME: max_filedesc
+IFDEF: FD_CONFIG
+TYPE: int
+DEFAULT: 1024
+LOC: Config.max_filedesc
+DOC_START
+ The maximum number of open file descriptors.
+
+ WARNING: Changes of this value isn't respected by reconfigure
+ command. This value should be changed only if there isn't
+ any active squid process.
+
+ NOTE: This option is only supported by system with poll()
+ or epoll(). You can set this value by --with-maxfd during
+ compilation on system whith uses select().
+
+ The maximum value for max_filedesc is set by --with-maxfd during
+ compilation.
+DOC_END
EOF
--- squid-2.6.STABLE1/src/main.c.fd 2006-07-26 09:58:41.000000000 +0200
+++ squid-2.6.STABLE1/src/main.c 2006-07-26 09:58:41.000000000 +0200
@@ -748,6 +749,8 @@
/* Make sure the OS allows core dumps if enabled in squid.conf */
enableCoredumps();
+ setMaxFD();
+
#if TEST_ACCESS
comm_init();
comm_select_init();
@@ -781,7 +784,6 @@
}
if (!opt_no_daemon)
watch_child(argv);
- setMaxFD();
/* init comm module */
comm_init();
--- squid-2.6.STABLE1/src/structs.h.fd 2006-07-26 09:58:41.000000000 +0200
+++ squid-2.6.STABLE1/src/structs.h 2006-07-26 09:58:41.000000000 +0200
@@ -805,6 +805,9 @@
#endif
time_t refresh_stale_window;
int umask;
+#if FD_CONFIG
+ int max_filedesc;
+#endif
};
struct _SquidConfig2 {
--- squid-2.6.STABLE1/src/tools.c.fd 2006-07-26 09:58:41.000000000 +0200
+++ squid-2.6.STABLE1/src/tools.c 2006-07-26 09:58:41.000000000 +0200
@@ -757,6 +757,21 @@
void
setMaxFD(void)
{
+
+/* Set up number of used filedescriptors from config file */
+/* Override the default settings Squid_MaxFD = FD_SETSIZE */
+#if FD_CONFIG
+ Squid_MaxFD = Config.max_filedesc;
+
+ /* don't exceed limit which was set during compilation */
+ if(SQUID_MAXFD < Squid_MaxFD)
+ Squid_MaxFD = SQUID_MAXFD;
+#else
+ /* don't exceed FD_SETSIZE */
+ if(FD_SETSIZE < Squid_MaxFD)
+ Squid_MaxFD = FD_SETSIZE;
+#endif
+
#if HAVE_SETRLIMIT
/* try to use as many file descriptors as possible */
/* System V uses RLIMIT_NOFILE and BSD uses RLIMIT_OFILE */
Index: .cvsignore
===================================================================
RCS file: /cvs/dist/rpms/squid/devel/.cvsignore,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- .cvsignore 2 Oct 2006 10:13:18 -0000 1.21
+++ .cvsignore 7 Nov 2006 15:06:52 -0000 1.22
@@ -6,3 +6,4 @@
squid-2.5.STABLE14.tar.bz2
squid-2.6.STABLE3.tar.bz2
squid-2.6.STABLE4.tar.bz2
+squid-2.6.STABLE5.tar.bz2
Index: sources
===================================================================
RCS file: /cvs/dist/rpms/squid/devel/sources,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -r1.23 -r1.24
--- sources 2 Oct 2006 10:13:18 -0000 1.23
+++ sources 7 Nov 2006 15:06:52 -0000 1.24
@@ -1 +1 @@
-81ed6ff977dff6d76b0ad2b5390ebf89 squid-2.6.STABLE4.tar.bz2
+b9f2e3b2c9e2c44e0fb729bf8f26d945 squid-2.6.STABLE5.tar.bz2
Index: squid.spec
===================================================================
RCS file: /cvs/dist/rpms/squid/devel/squid.spec,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -r1.78 -r1.79
--- squid.spec 25 Oct 2006 22:18:16 -0000 1.78
+++ squid.spec 7 Nov 2006 15:06:53 -0000 1.79
@@ -4,8 +4,8 @@
Summary: The Squid proxy caching server.
Name: squid
-Version: 2.6.STABLE4
-Release: 4%{?dist}
+Version: 2.6.STABLE5
+Release: 1%{?dist}
Epoch: 7
License: GPL
Group: System Environment/Daemons
@@ -48,7 +48,7 @@
Patch203: squid-2.6.STABLE2-build.patch
Patch204: squid-2.5.STABLE4-perlpath.patch
Patch205: squid-2.5.STABLE12-smb-path.patch
-Patch206: squid-2.6.STABLE4-fd-config-updated.patch
+Patch206: squid-2.6.STABLE5-fd-config.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Prereq: /sbin/chkconfig logrotate shadow-utils
@@ -73,24 +73,6 @@
%prep
%setup -q
-%patch101 -p1
-%patch102 -p1
-%patch103 -p1
-%patch104 -p1
-%patch105 -p1
-%patch106 -p1
-%patch107 -p1
-%patch108 -p1
-%patch109 -p1
-%patch110 -p1
-%patch111 -p1
-%patch112 -p1
-%patch113 -p1
-%patch114 -p1
-%patch115 -p1
-%patch116 -p1
-%patch117 -p1
-
%patch201 -p1 -b .config
%patch202 -p1 -b .location
%patch203 -p1 -b .build
@@ -360,6 +342,9 @@
chgrp squid /var/cache/samba/winbindd_privileged >/dev/null 2>&1 || :
%changelog
+* Mon Nov 6 2006 Martin Stransky <stransky at redhat.com> - 7:2.6.STABLE5-1
+- update to the latest upstream
+
* Tue Oct 26 2006 Martin Stransky <stransky at redhat.com> - 7:2.6.STABLE4-4
- added fix for #205568 - marked cachemgr.conf as world readable
--- squid-2.6.STABLE4-aio-done.patch DELETED ---
--- squid-2.6.STABLE4-cache-peer.patch DELETED ---
--- squid-2.6.STABLE4-compile.patch DELETED ---
--- squid-2.6.STABLE4-configure.patch DELETED ---
--- squid-2.6.STABLE4-coss-gcc.patch DELETED ---
--- squid-2.6.STABLE4-coss.patch DELETED ---
--- squid-2.6.STABLE4-delay-pools-2.patch DELETED ---
--- squid-2.6.STABLE4-delay-pools.patch DELETED ---
--- squid-2.6.STABLE4-fd-config-updated.patch DELETED ---
--- squid-2.6.STABLE4-forward.patch DELETED ---
--- squid-2.6.STABLE4-http-header.patch DELETED ---
--- squid-2.6.STABLE4-log.patch DELETED ---
--- squid-2.6.STABLE4-mem-leak-ncsa.patch DELETED ---
--- squid-2.6.STABLE4-mem-leak.patch DELETED ---
--- squid-2.6.STABLE4-reconfigure.patch DELETED ---
--- squid-2.6.STABLE4-snmp.patch DELETED ---
--- squid-2.6.STABLE4-syslog.patch DELETED ---
--- squid-2.6.STABLE4-time.patch DELETED ---
More information about the fedora-cvs-commits
mailing list