Skip to content

Commit

Permalink
reverseproxy: Improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
mmm444 committed Aug 1, 2023
1 parent fe18784 commit 2dcd979
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/caddyhttp/reverseproxy/reverseproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -1399,8 +1399,12 @@ type handleResponseContext struct {
// intended for use when doing a RoundTrip where you don't
// want a client disconnection to cancel the request during
// the roundtrip.
// This can be replaced with context.WithoutCancel once
// the minimum required required version of Go is 1.21.
// This context clears cancellation, error, and deadline methods,
// but still allows values to pass through from its embedded
// context.
//
// TODO: This can be replaced with context.WithoutCancel once
// the minimum required version of Go is 1.21.
type ignoreClientGoneContext struct {
context.Context
}
Expand Down

0 comments on commit 2dcd979

Please sign in to comment.