Skip to content

Commit

Permalink
Lengthen data download timeout
Browse files Browse the repository at this point in the history
Increased to 10 seconds
Geoip.cf 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 0b472e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fCraft/System/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ static IPAddress CheckExternalIP()
/// <summary> Safely downloads data. </summary>
[CanBeNull]
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 {
Expand Down

0 comments on commit 0b472e2

Please sign in to comment.