[master] f950e87 This problem was already fixed.

Poul-Henning Kamp phk at FreeBSD.org
Fri Jan 3 11:19:55 CET 2014


commit f950e875c2f8d89c0903e3cff29fb11d5fc2858a
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Fri Jan 3 10:19:28 2014 +0000

    This problem was already fixed.
    
    Fixes	#1395

diff --git a/bin/varnishtest/tests/r01395.vtc b/bin/varnishtest/tests/r01395.vtc
new file mode 100644
index 0000000..77506a4
--- /dev/null
+++ b/bin/varnishtest/tests/r01395.vtc
@@ -0,0 +1,17 @@
+varnishtest "Test vcl_error is called even if vcl_backend_fetch failed"
+
+varnish v1 -vcl {
+	backend default {
+		.host = "${bad_ip}"; .port = "9090";
+	}
+
+	sub vcl_error {
+		set obj.status = 200;
+	}
+} -start
+
+client c1 {
+	txreq -url "/"
+	rxresp
+	expect resp.status == 503
+} -run



More information about the varnish-commit mailing list