[master] 98c23bb A restart in vcl_fetch{} needs to loose the objcore as well.
Poul-Henning Kamp
phk at varnish-cache.org
Tue Jan 22 12:00:19 CET 2013
commit 98c23bb1733b02e1d1fad65fd5212ae04ced865d
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Jan 22 11:00:00 2013 +0000
A restart in vcl_fetch{} needs to loose the objcore as well.
Fixes #1253
diff --git a/bin/varnishtest/tests/r01253.vtc b/bin/varnishtest/tests/r01253.vtc
new file mode 100644
index 0000000..c1d88ff
--- /dev/null
+++ b/bin/varnishtest/tests/r01253.vtc
@@ -0,0 +1,26 @@
+varnishtest "restarting a pass in vcl_fetch should not panic"
+
+server s1 {
+ rxreq
+ txresp -status 304 -body "1234"
+ accept
+ rxreq
+ txresp -status 200 -body "56"
+} -start
+
+varnish v1 -vcl+backend {
+ sub vcl_recv {
+ return (pass);
+ }
+ sub vcl_fetch {
+ if (beresp.status != 200) {
+ return (restart);
+ }
+ }
+} -start
+
+client c1 {
+ txreq
+ rxresp
+ expect resp.bodylen == 2
+} -run
More information about the varnish-commit
mailing list