[master] 42b9b11 Make sure we get a proper diagnostic on stream delivery errors.

Poul-Henning Kamp phk at varnish-cache.org
Mon May 2 16:09:06 CEST 2011


commit 42b9b11bff48ecb9ab1afe212e34d0b3a7b21544
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Mon May 2 14:08:37 2011 +0000

    Make sure we get a proper diagnostic on stream delivery errors.

diff --git a/bin/varnishd/cache_center.c b/bin/varnishd/cache_center.c
index 0447dc7..ac86da0 100644
--- a/bin/varnishd/cache_center.c
+++ b/bin/varnishd/cache_center.c
@@ -872,6 +872,8 @@ cnt_streambody(struct sess *sp)
 		AN(sp->obj->objcore);
 		AN(sp->obj->objcore->ban);
 		HSH_Unbusy(sp);
+	} else {
+		sp->doclose = "Stream error";
 	}
 	sp->acct_tmp.fetch++;
 	sp->director = NULL;



More information about the varnish-commit mailing list