[3.0] 76516d9 Be more thorough the testing streaming+restart

Martin Blix Grydeland martin at varnish-cache.org
Wed Oct 2 14:11:09 CEST 2013


commit 76516d9584ba7c1baffe4049a82f13f6e841f615
Author: Guillaume Quintard <guillaume.quintard at smartjog.com>
Date:   Thu Sep 19 17:49:07 2013 +0200

    Be more thorough the testing streaming+restart
    
    Reset vfp when restarting in deliver, in case it has be set in
    cnt_fetchbody already.
    
    Fixes: #979

diff --git a/bin/varnishd/cache_center.c b/bin/varnishd/cache_center.c
index d11d600..19eb2ce 100644
--- a/bin/varnishd/cache_center.c
+++ b/bin/varnishd/cache_center.c
@@ -234,6 +234,7 @@ cnt_prepresp(struct sess *sp)
 		AZ(sp->obj);
 		sp->restarts++;
 		sp->director = NULL;
+		sp->wrk->vfp = NULL;
 		sp->wrk->h_content_length = NULL;
 		http_Setup(sp->wrk->bereq, NULL);
 		http_Setup(sp->wrk->beresp, NULL);
diff --git a/bin/varnishtest/tests/r00979.vtc b/bin/varnishtest/tests/r00979.vtc
index bc72efc..d459115 100644
--- a/bin/varnishtest/tests/r00979.vtc
+++ b/bin/varnishtest/tests/r00979.vtc
@@ -2,7 +2,7 @@ varnishtest "r00979.vtc Test restart when do_stream in vcl_deliver"
 
 server s1 {
 	rxreq
-	txresp -status 200 -body "1"
+	txresp -status 200 -gzipbody "1"
 	expect_close
 
 	accept



More information about the varnish-commit mailing list