[master] 39211f9 Add a debug option for setting bogus H2 settings so VTC's dont have to test with 16k frame sizes.
Poul-Henning Kamp
phk at FreeBSD.org
Tue Mar 7 11:37:05 CET 2017
commit 39211f974fd3b7243c58d79b5c6ad3a4d4f66de1
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Tue Mar 7 10:33:30 2017 +0000
Add a debug option for setting bogus H2 settings so VTC's dont
have to test with 16k frame sizes.
diff --git a/bin/varnishd/http2/cache_http2_proto.c b/bin/varnishd/http2/cache_http2_proto.c
index 9dbef5b..915a2d8 100644
--- a/bin/varnishd/http2/cache_http2_proto.c
+++ b/bin/varnishd/http2/cache_http2_proto.c
@@ -325,7 +325,8 @@ h2_set_setting(struct h2_sess *h2, const uint8_t *d)
VSLb(h2->vsl, SLT_Debug, "H2SETTING invalid %s=0x%08x",
s->name, y);
AN(s->range_error);
- return (s->range_error);
+ if (!DO_DEBUG(DBG_H2_NOCHECK))
+ return (s->range_error);
}
VSLb(h2->vsl, SLT_Debug, "H2SETTING %s=0x%08x", s->name, y);
AN(s->setfunc);
diff --git a/include/tbl/debug_bits.h b/include/tbl/debug_bits.h
index 1db9db8..e089022 100644
--- a/include/tbl/debug_bits.h
+++ b/include/tbl/debug_bits.h
@@ -46,6 +46,7 @@ DEBUG_BIT(WITNESS, witness, "Emit WITNESS lock records")
DEBUG_BIT(VSM_KEEP, vsm_keep, "Keep the VSM file on restart")
DEBUG_BIT(DROP_POOLS, drop_pools, "Drop thread pools (testing)")
DEBUG_BIT(SLOW_ACCEPTOR, slow_acceptor, "Slow down Acceptor")
+DEBUG_BIT(H2_NOCHECK, h2_nocheck, "Disable various H2 checks")
#undef DEBUG_BIT
/*lint -restore */
More information about the varnish-commit
mailing list