Commit 784b4a30 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make sure we always close the client connection if we pass through

vcl_error{}



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3204 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 05e14e2d
......@@ -305,6 +305,10 @@ cnt_error(struct sess *sp)
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);
......
# $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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment