A known and critical bug in HttpClient will cause TCP clients to not be closed. Dispose does not do what you think it does. https://aspnetmonsters.com/2016/08/2016-08-27-httpclientwrong/