[7.4] 7c5660820 param: New h2_window_timeout parameter

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


commit 7c5660820fb329eb3e8ca6a991b2ebf0defe4ddf
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date:   Mon Oct 23 11:49:23 2023 +0200

    param: New h2_window_timeout parameter
    
    This parameter needs to be somewhat high because web browsers may for
    example only credit streams for image resources just enough to parse
    metadata like width and height of a picture in order to perform layout
    computations and fetch resources more sensitive to latency before the
    effective image payloads.

diff --git a/include/tbl/params.h b/include/tbl/params.h
index 073e5be3b..600bf6a55 100644
--- a/include/tbl/params.h
+++ b/include/tbl/params.h
@@ -1193,6 +1193,20 @@ PARAM_SIMPLE(
 	/* flags */	WIZARD
 )
 
+PARAM_SIMPLE(
+	/* name */	h2_window_timeout,
+	/* type */	timeout,
+	/* min */	"0",
+	/* max */	NULL,
+	/* def */	"5",
+	/* units */	"seconds",
+	/* descr */
+	"HTTP2 time limit without window credits. How long a stream may "
+	"wait for the client to credit the window and allow for more DATA "
+	"frames to be sent.",
+	/* flags */	WIZARD
+)
+
 PARAM_SIMPLE(
 	/* name */	h2_header_table_size,
 	/* type */	bytes_u,


More information about the varnish-commit mailing list