Skip to content
Browse files
Lengthen data download timeout
Increased to 10 seconds requests no longer timeout causing an error
Not sure if this should be made into a background process
  • Loading branch information
123DMWM committed May 15, 2017
1 parent 9beb77e commit 0b472e2e38648b0a812eb688c94b826635473f9b
Showing with 1 addition and 1 deletion.
  1. +1 −1 fCraft/System/Server.cs
@@ -1132,7 +1132,7 @@ static IPAddress CheckExternalIP()
/// <summary> Safely downloads data. </summary>
public static string downloadDatastring(string url) {
HttpWebRequest request = HttpUtil.CreateRequest(new Uri(url), TimeSpan.FromSeconds(5));
HttpWebRequest request = HttpUtil.CreateRequest(new Uri(url), TimeSpan.FromSeconds(10));
request.CachePolicy = new RequestCachePolicy(RequestCacheLevel.BypassCache);

try {

0 comments on commit 0b472e2

Please sign in to comment.