Skip to content

Commit

Permalink
Fix SplitHTTP H3 waited for downResponse before uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
RPRX committed Jul 21, 2024
1 parent 22535d8 commit 0f65aa8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions transport/internet/splithttp/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0f65aa8

Please sign in to comment.