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

httpclient need proxy for each request #95342

Closed
NCLnclNCL opened this issue Nov 28, 2023 · 6 comments
Closed

httpclient need proxy for each request #95342

NCLnclNCL opened this issue Nov 28, 2023 · 6 comments

Comments

@NCLnclNCL
Copy link

NCLnclNCL commented Nov 28, 2023

Like python
r = requests.get(url, headers=headers, proxies=proxies)
I find that currently having to create a new httpclient with httphandle is too expensive and will cause socket exhaustion, Could there be a better solution?

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Nov 28, 2023
@ghost
Copy link

ghost commented Nov 28, 2023

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Issue Details

Like python
r = requests.get(url, headers=headers, proxies=proxies)
I find that currently having to create a new httpclient with httphandle is too expensive and will cause socket exhaustion

Author: NCLnclNCL
Assignees: -
Labels:

area-System.Net.Http, untriaged

Milestone: -

@wfurt
Copy link
Member

wfurt commented Nov 28, 2023

Duplicate of #35992? Or do I miss anything @NCLnclNCL?

@wfurt wfurt added the needs-author-action An issue or pull request that requires more info or actions from the author. label Nov 28, 2023
@ghost
Copy link

ghost commented Nov 28, 2023

This issue has been marked needs-author-action and may be missing some important information.

@MihaZupan
Copy link
Member

having to create a new httpclient with httphandle is too expensive and will cause socket exhaustion

How does python behave differently in this case to avoid such issues?

@NCLnclNCL
Copy link
Author

NCLnclNCL commented Nov 29, 2023

having to create a new httpclient with httphandle is too expensive and will cause socket exhaustion

How does python behave differently in this case to avoid such issues?

it like this https://github.com/mboukhlouf/WebProxyService/tree/master (c#), 1 httpclient with many proxy

@ghost ghost removed the needs-author-action An issue or pull request that requires more info or actions from the author. label Nov 29, 2023
@ManickaP
Copy link
Member

ManickaP commented Dec 1, 2023

Feel free to continue the discussion about python, but this is duplicate of #35992, closing.

@ManickaP ManickaP closed this as completed Dec 1, 2023
@ghost ghost removed the untriaged New issue has not been triaged by the area owner label Dec 1, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jan 1, 2024
@karelz karelz added this to the 9.0.0 milestone May 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants