- 建立连接超时时间
var httpClient = new HttpClient(new SocketsHttpHandler() { ConnectTimeout = ... });
- 响应超时时间
httpClient.TimeOut = ....
https://docs.microsoft.com/en-us/dotnet/api/system.net.http.socketshttphandler.connecttimeout?view=net-6.0
https://github.com/dotnet/runtime/issues/11594