[master] 89e4f96 Remove place_holder code.

Poul-Henning Kamp phk at FreeBSD.org
Wed Mar 29 13:51:05 CEST 2017


commit 89e4f9690e54564587f41767bf3b66f04a097f4e
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Wed Mar 29 07:47:35 2017 +0000

    Remove place_holder code.

diff --git a/bin/varnishd/http2/cache_http2_proto.c b/bin/varnishd/http2/cache_http2_proto.c
index fa59e28..d54453e 100644
--- a/bin/varnishd/http2/cache_http2_proto.c
+++ b/bin/varnishd/http2/cache_http2_proto.c
@@ -838,21 +838,10 @@ h2_rxframe(struct worker *wrk, struct h2_sess *h2)
 		return (1);
 	}
 	h2f = h2flist[h2->rxf_type];
-#if 1
+
 	AN(h2f->name);
 	AN(h2f->rxfunc);
-#else
-	/* If we ever get holes in the frame table... */
-	if (h2f->name == NULL || h2f->func == NULL) {
-		// rfc7540,l,679,681
-		// XXX: later, drain rest of frame
-		h2->bogosity++;
-		VSLb(h2->vsl, SLT_Debug,
-		    "H2: Unimplemented frame type 0x%02x (ignored)",
-		    h2->rxf_type);
-		return (0);
-	}
-#endif
+
 	if (h2->rxf_flags & ~h2f->flags) {
 		// rfc7540,l,687,688
 		h2->bogosity++;



More information about the varnish-commit mailing list