Commit 6ef4c318 authored by nanahira's avatar nanahira

more types of timeouts

parent 19f10e93
...@@ -32,6 +32,14 @@ public class HttpDldFile ...@@ -32,6 +32,14 @@ public class HttpDldFile
{ {
client.Timeout = 3500; client.Timeout = 3500;
} }
if (Path.GetExtension(filename).Contains("cdb"))
{
client.Timeout = 30000;
}
if (Path.GetExtension(filename).Contains("conf"))
{
client.Timeout = 3000;
}
client.DownloadFile(new Uri(url), filename + ".tmp"); client.DownloadFile(new Uri(url), filename + ".tmp");
} }
flag = true; flag = true;
...@@ -96,4 +104,4 @@ public class TimeoutWebClient : WebClient ...@@ -96,4 +104,4 @@ public class TimeoutWebClient : WebClient
request.Timeout = Timeout; request.Timeout = Timeout;
return request; return request;
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment