diff --git a/FastGithub.Http/HttpClientHandler.cs b/FastGithub.Http/HttpClientHandler.cs
index f7d4b3f..5bfedf0 100644
--- a/FastGithub.Http/HttpClientHandler.cs
+++ b/FastGithub.Http/HttpClientHandler.cs
@@ -108,7 +108,7 @@ namespace FastGithub.Http
catch (OperationCanceledException)
{
cancellationToken.ThrowIfCancellationRequested();
- innerExceptions.Add(new SocketException((int)SocketError.TimedOut));
+ innerExceptions.Add(new HttpConnectTimeoutException(ipEndPoint.Address));
}
catch (Exception ex)
{
diff --git a/FastGithub.Http/HttpConnectTimeoutException.cs b/FastGithub.Http/HttpConnectTimeoutException.cs
new file mode 100644
index 0000000..8c69528
--- /dev/null
+++ b/FastGithub.Http/HttpConnectTimeoutException.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Net;
+
+namespace FastGithub.Http
+{
+ ///
+ /// http连接超时异常
+ ///
+ sealed class HttpConnectTimeoutException : Exception
+ {
+ ///
+ /// http连接超时异常
+ ///
+ /// 连接的ip
+ public HttpConnectTimeoutException(IPAddress address)
+ : base(address.ToString())
+ {
+
+ }
+ }
+}