File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Common/src/System/Net/Http
System.Net.Http/tests/FunctionalTests Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,6 @@ internal static partial class HttpHandlerDefaults
2727 public static readonly TimeSpan DefaultPooledConnectionLifetime = Timeout . InfiniteTimeSpan ;
2828 public static readonly TimeSpan DefaultPooledConnectionIdleTimeout = TimeSpan . FromMinutes ( 1 ) ;
2929 public static readonly TimeSpan DefaultExpect100ContinueTimeout = TimeSpan . FromSeconds ( 1 ) ;
30- public static readonly TimeSpan DefaultConnectTimeout = Timeout . InfiniteTimeSpan ;
30+ public static readonly TimeSpan DefaultConnectTimeout = TimeSpan . FromSeconds ( 15 ) ;
3131 }
3232}
Original file line number Diff line number Diff line change @@ -1054,7 +1054,7 @@ public void ConnectTimeout_Default()
10541054 {
10551055 using ( var handler = new SocketsHttpHandler ( ) )
10561056 {
1057- Assert . Equal ( Timeout . InfiniteTimeSpan , handler . ConnectTimeout ) ;
1057+ Assert . Equal ( TimeSpan . FromSeconds ( 15 ) , handler . ConnectTimeout ) ;
10581058 }
10591059 }
10601060
You can’t perform that action at this time.
0 commit comments