C#C
C#2y ago
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
Was this page helpful?