Procházet zdrojové kódy

Fix SplitHTTP H3 waited for downResponse before uploading

https://github.com/XTLS/Xray-core/issues/3560#issuecomment-2241750579
RPRX před 1 rokem
rodič
revize
0f65aa8ed8
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      transport/internet/splithttp/client.go

+ 4 - 0
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()