-
Notifications
You must be signed in to change notification settings - Fork 101
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
How do you run pub/sub client behind a proxy? #315
Comments
Yes, it is. While It seems to work if we modify the following sections. google-cloud-rust/foundation/gax/src/conn.rs Line 180 in 497f2d2
Get the environment variables and if proxy is set, |
Thanks for your quick response. I checked the |
How about using hyper_proxy2 ? let raw_connector = ...
let proxy = Proxy::new(Intercept::All, "http://proxy.server:8080".parse()?);
let proxy_connector = ProxyConnector::from_proxy(raw_connector, proxy)?;
let channel = endpoint.connect(proxy_connector).await?; |
My fork: 10c7dab
Logs (it stuck):
Edit: I verified that it goes into the proxy branch and uses |
Hi,
In our setup the servers don't have any outside internet access. However, we run
squid
outside, connecting to the VPN and creating a proxy over ssh. Basically, we can download updates etc. without any issues. When I try to usePub/Sub
client behind the proxy, as I understand it has issues because it's a gRPC client (please correct me if I'm wrong on this).Is it possible to find a way to have the
Pub/Sub
client connection behind the proxy? It stuck at the last line of the logs.The code and logs:
Connection:
Environment:
The text was updated successfully, but these errors were encountered: