Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v8] Provide proxy listener mode from reversetunnel.Resolver #17799

Merged
merged 2 commits into from
Nov 2, 2022

Conversation

rosstimothy
Copy link
Contributor

Backports #16434 to branch/v8

By only providing the tunnel address from the `reversetunnel.Resolver`
callers would still need to lookup the proxy listener mode to determine
how to dial the address. This results in sending a request to
`/webapi/find` once by the resolver to get the tunnel address and then
a second request to `/webapi/find` by users of the `Resolver` to determine
the proxy listener mode. Propagating the listener mode along with the
tunnel address by the `Resolver` ensures only one `/webapi/find` call
is needed.

This is especially impactful because the `reversetunnel.TunnelAuthDialer`
which is used by the auth http client would do this everytime the
`http.Client` connection pool was empty. When the `http.Client` needed
to dial the auth server it was incurring the additional roundtrip to the
proxy.
@rosstimothy rosstimothy force-pushed the tross/backport-16434-branch/v8 branch from d136123 to c430850 Compare October 25, 2022 17:31
@rosstimothy rosstimothy marked this pull request as ready for review October 26, 2022 12:14
@github-actions github-actions bot requested review from lxea and zmb3 October 26, 2022 12:14
@rosstimothy rosstimothy enabled auto-merge (squash) November 2, 2022 16:07
@rosstimothy rosstimothy merged commit 7d29ab2 into branch/v8 Nov 2, 2022
@rosstimothy rosstimothy deleted the tross/backport-16434-branch/v8 branch January 5, 2023 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants