File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
Flagsmith.FlagsmithClient Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -833,5 +833,11 @@ public void TestRequestTimeoutInterpretsSecondsCorrectly()
833833 } ;
834834 Assert . Equal ( 100 , config . RequestTimeout ) ;
835835 }
836+
837+ [ Fact ]
838+ public void TestRequestTimeoutHasReasonableDefault ( )
839+ {
840+ Assert . True ( new FlagsmithConfiguration ( ) . RequestTimeout > 1 ) ;
841+ }
836842 }
837843}
Original file line number Diff line number Diff line change 11<Project Sdk =" Microsoft.NET.Sdk" >
2-
2+
33 <PropertyGroup >
44 <TargetFramework >netstandard2.0</TargetFramework >
55 <LangVersion >8</LangVersion >
66 <DefaultItemExcludes >$(DefaultItemExcludes);example/**;</DefaultItemExcludes >
77 <CopyLocalLockFileAssemblies >true</CopyLocalLockFileAssemblies >
88 <PackageId >Flagsmith</PackageId >
99 <Title >Flagsmith</Title >
10- <Version >8.0.0 </Version >
10+ <Version >8.0.1 </Version >
1111 <Authors >flagsmith</Authors >
1212 <Company >Flagsmith</Company >
1313 <PackageDescription >Client SDK for Flagsmith. Ship features with confidence using feature flags and remote config. Host yourself or use our hosted version at https://flagsmith.com/</PackageDescription >
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ namespace Flagsmith
99 public class FlagsmithConfiguration
1010 {
1111 private static readonly Uri DefaultApiUri = new Uri ( "https://edge.api.flagsmith.com/api/v1/" ) ;
12- private TimeSpan _timeout ;
12+ private TimeSpan _timeout = TimeSpan . FromSeconds ( 5 ) ;
1313
1414 /// <summary>
1515 /// Versioned base Flagsmith API URI to use for all requests. Defaults to
@@ -54,7 +54,7 @@ public class FlagsmithConfiguration
5454 public Double ? RequestTimeout
5555 {
5656 get => _timeout . TotalSeconds ;
57- set => _timeout = TimeSpan . FromSeconds ( value ?? 100 ) ;
57+ set => _timeout = TimeSpan . FromSeconds ( value ?? 5 ) ;
5858 }
5959
6060 /// <summary>
You can’t perform that action at this time.
0 commit comments