- Added a patch, changeset 1913 from svn trunk. This makes varnish more

stable under specific loads.
This commit is contained in:
Ingvar Hagelund 2007-09-07 22:13:48 +00:00
parent a3183caf2b
commit ab76c42cbe
2 changed files with 26 additions and 1 deletions

18
varnish-cs1913.patch Normal file
View File

@ -0,0 +1,18 @@
Index: bin/varnishd/cache_center.c
===================================================================
--- bin/varnishd/cache_center.c (revision 1912)
+++ bin/varnishd/cache_center.c (revision 1913)
@@ -524,7 +524,12 @@
*/
WSL(sp->wrk, SLT_Debug, sp->fd,
"on waiting list on obj %u", sp->obj->xid);
- assert(!isnan(sp->wrk->used));
+ /*
+ * There is a non-zero risk that we come here more than once
+ * before we get through, in that case cnt_recv must be set
+ */
+ if (isnan(sp->wrk->used))
+ sp->wrk->used = TIM_real();
SES_Charge(sp);
return (1);
}

View File

@ -1,11 +1,12 @@
Summary: Varnish is a high-performance HTTP accelerator Summary: Varnish is a high-performance HTTP accelerator
Name: varnish Name: varnish
Version: 1.1.1 Version: 1.1.1
Release: 2%{?dist} Release: 3%{?dist}
License: BSD-like License: BSD-like
Group: System Environment/Daemons Group: System Environment/Daemons
URL: http://www.varnish-cache.org/ URL: http://www.varnish-cache.org/
Source0: http://downloads.sourceforge.net/varnish/varnish-%{version}.tar.gz Source0: http://downloads.sourceforge.net/varnish/varnish-%{version}.tar.gz
Patch0: varnish-cs1913.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
Requires: kernel >= 2.6.0 varnish-libs = %{version}-%{release} Requires: kernel >= 2.6.0 varnish-libs = %{version}-%{release}
@ -48,6 +49,8 @@ Varnish is a high-performance HTTP accelerator
%prep %prep
%setup -q %setup -q
%patch0
# The svn sources needs to generate a suitable configure script # The svn sources needs to generate a suitable configure script
# Release tarballs would not need this # Release tarballs would not need this
#./autogen.sh #./autogen.sh
@ -165,6 +168,10 @@ fi
%postun libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig
%changelog %changelog
* Wed Sep 08 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.1.1-3
- Added a patch, changeset 1913 from svn trunk. This makes varnish
more stable under specific loads.
* Tue Sep 06 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.1.1-2 * Tue Sep 06 2007 Ingvar Hagelund <ingvar@linpro.no> - 1.1.1-2
- Removed autogen call (only diff from relase tarball) - Removed autogen call (only diff from relase tarball)