[7.3] 67d5cbb66 vsc: New MAIN.sc_bankrupt counter

Simon Stridsberg simon.stridsberg at varnish-software.com
Mon Mar 18 18:23:07 UTC 2024


commit 67d5cbb66610d69901e2a22aed827caa8fa856d1
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Thu Nov 16 16:58:55 2023 +0100

    vsc: New MAIN.sc_bankrupt counter

diff --git a/include/tbl/sess_close.h b/include/tbl/sess_close.h
index f15d34a64..1fc5b648e 100644
--- a/include/tbl/sess_close.h
+++ b/include/tbl/sess_close.h
@@ -51,6 +51,7 @@ SESS_CLOSE(RANGE_SHORT,   range_short,	1,	"Insufficient data for range")
 SESS_CLOSE(REQ_HTTP20,	  req_http20,	1,	"HTTP2 not accepted")
 SESS_CLOSE(VCL_FAILURE,	  vcl_failure,	1,	"VCL failure")
 SESS_CLOSE(RAPID_RESET,	  rapid_reset,  1,      "HTTP2 rapid reset")
+SESS_CLOSE(BANKRUPT,	  bankrupt,	1,      "HTTP2 credit bankruptcy")
 #undef SESS_CLOSE
 
 /*lint -restore */
diff --git a/lib/libvsc/VSC_main.vsc b/lib/libvsc/VSC_main.vsc
index aa2e36744..ae0a69976 100644
--- a/lib/libvsc/VSC_main.vsc
+++ b/lib/libvsc/VSC_main.vsc
@@ -648,6 +648,14 @@
        configured limits for the number of permitted rapid stream
        resets.
 
+.. varnish_vsc:: sc_bankrupt
+	:level: diag
+	:oneliner:      Session Err BANKRUPT
+
+	Number of times we failed an http/2 session because all the streams
+	were waiting for their windows to be credited when h2_window_timeout
+	triggered.
+
 .. varnish_vsc:: client_resp_500
 	:level: diag
 	:group: wrk


More information about the varnish-commit mailing list