-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add explicit proxy support for godotenv #67
Comments
Turns out to be a local network environment issue. Closed. |
More specificly speaking, the DNS of |
Now after adding the explicit proxy support, the public async Task<HttpResponseMessage> WebRequestGetAsync(string url, string? proxyUrl = null) {
var proxy = string.IsNullOrEmpty(proxyUrl) ? WebRequest.GetSystemWebProxy() : new WebProxy(proxyUrl);
var factory = new ServiceCollection()
.AddHttpClient(Options.DefaultName)
.ConfigurePrimaryHttpMessageHandler(() => new HttpClientHandler { Proxy = proxy })
.Services
.BuildServiceProvider()
.GetService<IHttpClientFactory>();
var client = factory.CreateClient();
return await client.GetAsync(url);
} Now we can see that there might be potential performance issue, since we cached the http client in the current version, but create a factory each time the function is executed. So what is the real situation? I have used
Need to mention that this is the result of the second time, the first time I run this test, the mean time of |
@SydneyDrone I'm all for improvements which benefit users in mainland China. I will happily accept reasonable improvements to allow proxies. |
Trying to install godot using
godotenv godot install 4.2.2
command, and after successfully download godot, here is what I get at verifying checksum stage:Detailed Console Message
I strongly doubt that cannot using proxy(which links to #49 ) is the reason of this error(I mean, I cannot direct reach github without the help of proxy in my current network envirionment). How can I further locate where goes wrong?
The text was updated successfully, but these errors were encountered: