microsoft-authentication-library-for-dotnet
microsoft-authentication-library-for-dotnet copied to clipboard
[Bug] Replace HttpClient factory on .NET fwk with the one on .NET Core
Looks like the .NET fwk factory is throwing a lot of timeout errors:
Suggested fix: use .NET Core's factory on .net
amazing! Do we know if the .NET Core would throw less?
yes, I think @pmaytak figure that one out - it's because on .NET Core we use a simple HTTP Factory (a static HttpClient) + Id.Web uses fancy scalable one. But on .NET Fwk we use a more complex HTTP Factory where we try to be smart about DNS refreshes etc.
Btw, I updated the query to also print out occurrences of this error in Id.Web. And there aren't any. Well done @jennyf19 and @jmprieur for using a scalable solution in Id.Web
More details sent via email, but in general: there seems to be 2.2x fewer errors with the updated Http client on Msal.Desktop.