From 7a646e8d10e43ff308f1ec408df9027cce01b364 Mon Sep 17 00:00:00 2001 From: wwqgtxx Date: Thu, 7 May 2026 18:10:13 +0800 Subject: [PATCH] fix: correctly configure the HTTP/2 scheduled ping parameters in masque h2 mode --- adapter/outbound/masque.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/adapter/outbound/masque.go b/adapter/outbound/masque.go index d22f01888..4e748583a 100644 --- a/adapter/outbound/masque.go +++ b/adapter/outbound/masque.go @@ -180,8 +180,10 @@ func NewMasque(option MasqueOption) (*Masque, error) { type netConn struct{ net.Conn } // hide tls-type to skip ALPN check and force enter h2 mode return netConn{tlsConn}, nil }, - Protocols: protocols, - IdleConnTimeout: 30 * time.Second, + Protocols: protocols, + HTTP2: &http.HTTP2Config{ + SendPingTimeout: 30 * time.Second, + }, } }