Skip to content

Commit 0b472e2

Browse files
committed
Lengthen data download timeout
Increased to 10 seconds Geoip.cf requests no longer timeout causing an error Not sure if this should be made into a background process
1 parent 9beb77e commit 0b472e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fCraft/System/Server.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ static IPAddress CheckExternalIP()
11321132
/// <summary> Safely downloads data. </summary>
11331133
[CanBeNull]
11341134
public static string downloadDatastring(string url) {
1135-
HttpWebRequest request = HttpUtil.CreateRequest(new Uri(url), TimeSpan.FromSeconds(5));
1135+
HttpWebRequest request = HttpUtil.CreateRequest(new Uri(url), TimeSpan.FromSeconds(10));
11361136
request.CachePolicy = new RequestCachePolicy(RequestCacheLevel.BypassCache);
11371137

11381138
try {

0 commit comments

Comments
 (0)