aboutsummaryrefslogtreecommitdiff
path: root/www/varnish2/files/patch-svn-r1913
diff options
context:
space:
mode:
Diffstat (limited to 'www/varnish2/files/patch-svn-r1913')
-rw-r--r--www/varnish2/files/patch-svn-r191318
1 files changed, 18 insertions, 0 deletions
diff --git a/www/varnish2/files/patch-svn-r1913 b/www/varnish2/files/patch-svn-r1913
new file mode 100644
index 000000000000..318666826f0e
--- /dev/null
+++ b/www/varnish2/files/patch-svn-r1913
@@ -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);
+ }