© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
33 replies
Kroks

How to use the same HttpClient instance with different session cookies / proxies?

Hello I am managing thousands of accounts at once (nothing malicious, just for pentesting reasons). And was wondering how I could accomplish this.
For each of these accounts I am currently using one HttpClient. But after a while I get "Unable to read data from the transport connection: Connection reset by peer". I believe this is due to Socket exhaustion. And Socket exhaustion is due to the fact that I use so many clients.
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Different HttpClient headers
C#CC# / help
2y ago
How to use Server Sent Events with HttpClient
C#CC# / help
3y ago
How to use certificate on HttpClient
C#CC# / help
4y ago
❔ Session vs Cookies vs Cache
C#CC# / help
3y ago