http3: ignore context after response when using DontCloseRequestStream (#3473)

This commit is contained in:
Marten Seemann
2022-07-24 19:58:12 +01:00
committed by GitHub
parent f29dd273b4
commit 61ca8e89fe
4 changed files with 37 additions and 3 deletions

View File

@@ -84,6 +84,7 @@ type RoundTripOpt struct {
// If set true and no cached connection is available, RoundTripOpt will return ErrNoCachedConn.
OnlyCachedConn bool
// DontCloseRequestStream controls whether the request stream is closed after sending the request.
// If set, context cancellations have no effect after the response headers are received.
DontCloseRequestStream bool
}