[master] 529a35dd4 Panic dump H2 rxbuf
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Mon Aug 30 08:31:08 UTC 2021
commit 529a35dd470660a72907b0fc1cb31ecc53ecf0e5
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Tue Jun 22 11:49:57 2021 +0200
Panic dump H2 rxbuf
diff --git a/bin/varnishd/http2/cache_http2_panic.c b/bin/varnishd/http2/cache_http2_panic.c
index dd580fc34..1539d69ec 100644
--- a/bin/varnishd/http2/cache_http2_panic.c
+++ b/bin/varnishd/http2/cache_http2_panic.c
@@ -88,6 +88,15 @@ h2_sess_panic(struct vsb *vsb, const struct sess *sp)
VSB_printf(vsb, "t_window = %jd, r_window = %jd,\n",
r2->t_window, r2->r_window);
+ if (!PAN_dump_struct(vsb, r2->rxbuf, H2_RXBUF_MAGIC, "rxbuf")) {
+ VSB_printf(vsb, "stvbuf = %p,\n", r2->rxbuf->stvbuf);
+ VSB_printf(vsb,
+ "{size, tail, head} = {%u, %ju, %ju},\n",
+ r2->rxbuf->size, r2->rxbuf->tail, r2->rxbuf->head);
+ VSB_indent(vsb, -2);
+ VSB_cat(vsb, "},\n");
+ }
+
VSB_indent(vsb, -2);
VSB_cat(vsb, "},\n");
}
More information about the varnish-commit
mailing list