Skip to content

Commit

Permalink
增加相应超时时间
Browse files Browse the repository at this point in the history
  • Loading branch information
239573049 committed Dec 28, 2024
1 parent 494c8d3 commit b23b1b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Thor.Abstractions/HttpClientFactory.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Concurrent;
using System.Text;

namespace Thor.Abstractions;

Expand Down Expand Up @@ -55,6 +56,8 @@ public static HttpClient GetHttpClient(string key)
ConnectTimeout = TimeSpan.FromMinutes(30),
KeepAlivePingTimeout = TimeSpan.FromMinutes(30),
ResponseDrainTimeout = TimeSpan.FromMinutes(30),
MaxAutomaticRedirections = 2,
Expect100ContinueTimeout = TimeSpan.FromMinutes(30),
})
{
Timeout = TimeSpan.FromMinutes(30),
Expand Down

0 comments on commit b23b1b8

Please sign in to comment.