Search
Varnish Enterprise

Introduction Installation Upgrading Troubleshooting Changelog Changelog for 6.0.x Changes (Varnish Cache 4.1) Changes (Varnish Cache Plus 4.1) Known Issues Features Backend SSL/TLS Client SSL/TLS termination Cluster In-Process TLS MSE 4 Basic Configuration / Getting Started Configuration Persisted caching Categories Configuration Reference MSE 3.0 Settings mkfs.mse Memory Governor MSE 2.0 NUMA Parallel ESI Backend health counter HTTP/2 Support JSON Logging TCP Only Probes Timeouts Transit Buffer Varnish scoreboard VMODs Accept Accounting ACL (aclplus) ActiveDNS Akamai Connector AWS VCL Body Access & Transformation (xbody) Brotli Cookie Plus (cookieplus) DeviceAtlas DeviceAtlas3 Digest Dynamic backends (goto) Edgestash File Format Geolocation (geoip/mmdb) Header Manipulation (headerplus) HTTP communication (http) Image JSON parsing (json) JWT Key value storage (kvstore) Least connections director (leastconn) Module to control the built-in HTTP2 transport (h2) MSE control (mse) MSE4 control (mse4) Probe Proxy ProxyV2 TLV Attribute Extraction (proxy) Pseudo Random Number Generator Purge (purge/softpurge) Real-time Status (rtstatus) Reverse DNS (resolver) Rewrite S3 VMOD Session Slicer SQLite3 Stale Standard (std) Stat (Prometheus) Strings (str) Synthetic backends (synthbackend) Tag-based invalidation (Ykey/Xkey) TCP configuration (tcp) TLS Total Encryption (crypto) Unified director object (udo) Uniform Resource Identifier (uri) Unix Socket Utilities (unix) URL Plus (urlplus) Utils Vsthrottle

Module to control the built-in HTTP2 transport (h2)

Description

This VMOD contains functions to control the HTTP2 transport built into Varnish-Cache.

is

BOOL is()

Returns true when called on a session handled by the built-in HTTP2 transport.

Arguments: None

Type: Function

Returns: Bool

Restricted to: client

rapid_reset

DURATION rapid_reset([DURATION threshold])

Get and optionally set the h2_rapid_reset parameter (See varnishd(1)) for this HTTP2 session only.

Returns -1 when used outside the HTTP2 transport. Otherwise returns the previous value.

If the call leads to a change in the rate limit parameters, the current budget as retuned by h2.rapid_reset_budget() is reset.

Arguments:

  • threshold accepts type DURATION

Type: Function

Returns: Duration

Restricted to: client

rapid_reset_limit

INT rapid_reset_limit([INT number])

Get and optionally set the h2_rapid_reset_limit parameter (See varnishd(1)) for this HTTP2 session only.

Returns -1 when used outside the HTTP2 transport. Otherwise returns the previous value.

If the call leads to a change in the rate limit parameters, the current budget as retuned by h2.rapid_reset_budget() is reset.

Arguments:

  • number accepts type INT

Type: Function

Returns: Int

Restricted to: client

rapid_reset_period

DURATION rapid_reset_period([DURATION duration])

Get and optionally set the h2_rapid_reset_period parameter (See varnishd(1)) for this HTTP2 session only.

Returns -1 when used outside the HTTP2 transport. Otherwise returns the previous value.

If the call leads to a change in the rate limit parameters, the current budget as retuned by h2.rapid_reset_budget() is reset.

Arguments:

  • duration accepts type DURATION

Type: Function

Returns: Duration

Restricted to: client

rapid_reset_budget

REAL rapid_reset_budget()

Return how many RST frames classified as “rapid” the client is still allowed to send before the session is going to be closed.

SEE ALSO

Arguments: None

Type: Function

Returns: Real

Restricted to: client


®Varnish Software, Wallingatan 12, 111 60 Stockholm, Organization nr. 556805-6203