fix: correctly configure the HTTP/2 scheduled ping parameters in masque h2 mode

This commit is contained in:
wwqgtxx committed 2026-05-07 18:27:25 +08:00
1 parent b03aa5d570
commit 7a646e8d10
1 file changed
+4 -2
+4 -2
View File
@@ -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,
},
}
}