What is the default HttpClient timeout in .NET?
Posted: (EET/GMT+2)
It is by default set to 100 seconds (one hundred seconds, which is about 1,5 minutes). The timeout is given as a TimeSpan object, allowing easy setup and precise control.
You can easily increase this value with code like this:
HttpClient myHttpClient { get; } = new HttpClient();
myHttpClient.Timeout = TimeSpan.FromMinutes(15);
Happy hacking!