vcl_error{}
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3204
d4fa192b-c00b-0410-8231-
f00ffab90ce4
char date[40];
CHECK_OBJ_NOTNULL(sp, SESS_MAGIC);
+
+ /* We always close when we take this path */
+ sp->doclose = "error";
+
w = sp->wrk;
if (sp->obj == NULL) {
HSH_Prealloc(sp);
--- /dev/null
+# $Id$
+
+test "Check that we close one error"
+
+varnish v1 -vcl {
+ backend foo {
+ .host = "127.0.0.2";
+ .port = "9080";
+ }
+ sub vcl_recv {
+ error 888;
+ }
+} -start
+
+client c1 {
+ txreq -url "/"
+ rxresp
+ expect resp.status == 888
+ expect resp.http.connection == close
+} -run