From 0f65aa8ed803922abf9ce90ce963df54ac69af28 Mon Sep 17 00:00:00 2001 From: RPRX <63339210+RPRX@users.noreply.github.com> Date: Sun, 21 Jul 2024 20:45:05 +0000 Subject: [PATCH] Fix SplitHTTP H3 waited for downResponse before uploading https://github.com/XTLS/Xray-core/issues/3560#issuecomment-2241750579 --- transport/internet/splithttp/client.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/transport/internet/splithttp/client.go b/transport/internet/splithttp/client.go index 2a467d7d..8330d5d7 100644 --- a/transport/internet/splithttp/client.go +++ b/transport/internet/splithttp/client.go @@ -94,6 +94,10 @@ func (c *DefaultDialerClient) OpenDownload(ctx context.Context, baseURL string) gotDownResponse.Close() }() + if c.isH3 { + gotConn.Close() + } + // we want to block Dial until we know the remote address of the server, // for logging purposes <-gotConn.Wait()