(Aug 3, 2020 05:05 AM)draxyee Wrote: The problem is it doesn’t allow for my implementation. I can’t share a single HTTPClient, as I need to change proxy after a request has been made. HTTPClient doesn’t allow you to modify the proxy after a request has been sent, rendering the reuse of a singleton client as useless (if that was your memory leak fix).
How many proxies are we talking though?
Unless you are using a pretty unreasonable amount of proxies you could just be saving the instances of this per proxy and re-using the same instance from a dictionary of HttpClient?
As per my previous post though, RestSharp has been a pretty good alternative for us.


