Fix SplitHTTP H3 waited for downResponse before uploading

https://github.com/XTLS/Xray-core/issues/3560#issuecomment-2241750579
This commit is contained in:
RPRX 2024-07-21 20:45:05 +00:00 committed by GitHub
parent 22535d8643
commit 0f65aa8ed8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,6 +94,10 @@ func (c *DefaultDialerClient) OpenDownload(ctx context.Context, baseURL string)
gotDownResponse.Close() gotDownResponse.Close()
}() }()
if c.isH3 {
gotConn.Close()
}
// we want to block Dial until we know the remote address of the server, // we want to block Dial until we know the remote address of the server,
// for logging purposes // for logging purposes
<-gotConn.Wait() <-gotConn.Wait()