Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract common logic from cc.roundTrip
- http2ClientConn's roundTrip method is responsible for sending a request and receiving the response. In the h2c upgrade case, we already sent the request via HTTP/1, so we only need the logic for recovering the response - This way `cc.roundTrip` and `cc.completeUpgrade` can share the common response-handling logic - Remove the retry logic from CompleteUpgrade (which we copied from RoundTripOpt), since we are not issuing a request (as described above) [cloudfoundry/routing-release#200] Co-authored-by: Greg Cobb <[email protected]>
- Loading branch information