Proxy icon indicating copy to clipboard operation
Proxy copied to clipboard

Load Testing

Open ditpfletcher opened this issue 10 years ago • 2 comments

Started performance loading this library in the last few days and I ran into an issue where I could only get it to perform around 3.3 requests per second.

Had to add System.Net.ServicePointManager.DefaultConnectionLimit = 1000; to my app startup to fix this issue.

ditpfletcher avatar Nov 14 '16 12:11 ditpfletcher

I think you can achieve the same by providing that in the ProxyOptions, i.e: app.RunProxy(new ProxyOptions { Scheme = "https", Host = "example.com", Port = 443, BackChannelMessageHandler = new HttpClientHandler { MaxConnectionsPerServer = 1000 } });

dotnetdummy avatar Dec 06 '16 16:12 dotnetdummy

Interesting, thanks for your input. We've ran all out tests etc via the my suggested fix above but if I have time I'll check it out. Hopefully it helps someone else.

ditpfletcher avatar Dec 07 '16 09:12 ditpfletcher