[master] c011ffb VDP_FINI is not allowed to return failure.

Poul-Henning Kamp phk at FreeBSD.org
Sat Mar 11 21:55:05 CET 2017


commit c011ffbacecca9748a103fe488a398bea977c994
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sat Mar 11 20:54:00 2017 +0000

    VDP_FINI is not allowed to return failure.

diff --git a/bin/varnishd/http2/cache_http2_deliver.c b/bin/varnishd/http2/cache_http2_deliver.c
index 920e0fa..3ef75a3 100644
--- a/bin/varnishd/http2/cache_http2_deliver.c
+++ b/bin/varnishd/http2/cache_http2_deliver.c
@@ -84,7 +84,7 @@ h2_bytes(struct req *req, enum vdp_action act, void **priv,
 
 	if (act == VDP_INIT)
 		return (0);
-	if (r2->error)
+	if (r2->error && act != VDP_FINI)
 		return (-1);
 	H2_Send_Get(req->wrk, r2->h2sess, r2);
 	H2_Send(req->wrk, r2,



More information about the varnish-commit mailing list