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

Forced UseProxy to false when no proxy #67

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open

Forced UseProxy to false when no proxy #67

wants to merge 1 commit into from

Conversation

francnuec
Copy link

Found this StackOverflow question: http://stackoverflow.com/questions/35084773/why-is-first-httpclient-postasync-call-extremely-slow-in-my-c-sharp-winforms-app , and it answered my issues on slow queries through HTTP (#66 - #66)

After stepping into the code through debugging, I noticed the HttpClient handler had UseProxy as true even though no proxy. This might be the default setting. So explicitly setting the field to false made all the difference. The HTTP query runs in 10ms now.

Found this StackOverflow question: http://stackoverflow.com/questions/35084773/why-is-first-httpclient-postasync-call-extremely-slow-in-my-c-sharp-winforms-app , and it answered my issues on slow queries through HTTP (#66 - #66)

After stepping into the code through debugging, I noticed the HttpClient handler had UseProxy as true even though no proxy. This might be the default setting. So explicitly setting the field to false made all the difference. The HTTP query runs in 10ms now.
@endeffects
Copy link

@ra0o0f @jjchiw @jmcdaniel83 please merge and create new release package

@ra0o0f
Copy link
Owner

ra0o0f commented Jun 12, 2019

@endeffects sure will do, just give me couple a days so I can clear my schedule

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