[master] 79ed4fc Try to catch a panic on VCO
Poul-Henning Kamp
phk at FreeBSD.org
Mon Jan 15 07:57:06 UTC 2018
commit 79ed4fce4c0ea4ee6d159e9c085b9d49dda512bf
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Jan 15 07:55:42 2018 +0000
Try to catch a panic on VCO
diff --git a/bin/varnishd/http2/cache_http2_session.c b/bin/varnishd/http2/cache_http2_session.c
index 9451952..252b631 100644
--- a/bin/varnishd/http2/cache_http2_session.c
+++ b/bin/varnishd/http2/cache_http2_session.c
@@ -315,6 +315,11 @@ h2_new_session(struct worker *wrk, void *arg)
while (h2_rxframe(wrk, h2)) {
WS_Reset(h2->ws, wsp);
HTC_RxInit(h2->htc, h2->ws);
+ if (WS_Overflowed(h2->ws)) {
+ VSLb(h2->vsl, SLT_Debug, "H2: Empty Rx Workspace");
+ h2->error = H2CE_INTERNAL_ERROR;
+ break;
+ }
}
AN(h2->error);
More information about the varnish-commit
mailing list