X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2FSystem.Net.Http%2FSystem.Net.Http%2FHttpClient.cs;h=c9fd2354abe136be56708c73b9a2bf30ff6f2098;hb=3741d16503a973a99c724bdab9a255a5f07a3637;hp=baa6dd9f0d26cc6a219c5187164013043009be9d;hpb=2f717098f22a1c787d95a4255db18af6e27789a9;p=mono.git diff --git a/mcs/class/System.Net.Http/System.Net.Http/HttpClient.cs b/mcs/class/System.Net.Http/System.Net.Http/HttpClient.cs index baa6dd9f0d2..c9fd2354abe 100644 --- a/mcs/class/System.Net.Http/System.Net.Http/HttpClient.cs +++ b/mcs/class/System.Net.Http/System.Net.Http/HttpClient.cs @@ -96,7 +96,7 @@ namespace System.Net.Http return timeout; } set { - if (value != System.Threading.Timeout.InfiniteTimeSpan && value < TimeSpan.Zero) + if (value != System.Threading.Timeout.InfiniteTimeSpan && (value <= TimeSpan.Zero || value.Ticks > int.MaxValue)) throw new ArgumentOutOfRangeException (); timeout = value;