Skip to content

Commit 964859b

Browse files
chise0713Fanglidingxqzrll11l1lIllIl1lll
authored andcommitted
SplitHTTP: Remove unnecessary keepalives (#3565)
Remove keep alive since quic-go/http3 doesn't support stream reuse Discussion see https://t.me/projectXray/3782492 Co-authored-by: Fangliding <[email protected]> Co-authored-by: xqzr <[email protected]> Co-authored-by: ll11l1lIllIl1lll <[email protected]>
1 parent 8deb953 commit 964859b

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

transport/internet/splithttp/dialer.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,8 @@ func getHTTPClient(ctx context.Context, dest net.Destination, streamSettings *in
8787

8888
if isH3 {
8989
dest.Network = net.Network_UDP
90-
quicConfig := &quic.Config{
91-
HandshakeIdleTimeout: 10 * time.Second,
92-
MaxIdleTimeout: 90 * time.Second,
93-
KeepAlivePeriod: 3 * time.Second,
94-
Allow0RTT: true,
95-
}
9690
roundTripper := &http3.RoundTripper{
9791
TLSClientConfig: gotlsConfig,
98-
QUICConfig: quicConfig,
9992
Dial: func(ctx context.Context, addr string, tlsCfg *gotls.Config, cfg *quic.Config) (quic.EarlyConnection, error) {
10093
conn, err := internet.DialSystem(ctx, dest, streamSettings.SocketSettings)
10194
if err != nil {

0 commit comments

Comments
 (0)