DepotDownloader: Set Steam2 connection timeout to 5s.

pull/8/head
Nicholas Hastings 13 years ago
parent 9fb844fdae
commit d11b77403c

@ -17,6 +17,7 @@ namespace DepotDownloader
const int MAX_STORAGE_RETRIES = 500;
const int MAX_CONNECT_RETRIES = 10;
const int NUM_STEAM3_CONNECTIONS = 4;
const TimeSpan STEAM2_CONNECT_TIMEOUT = TimeSpan.FromSeconds(5);
public static DownloadConfig Config = new DownloadConfig();
@ -703,6 +704,7 @@ namespace DepotDownloader
string txtManifest = Path.Combine(installDir, "manifest.txt");
ContentServerClient csClient = new ContentServerClient();
csClient.ConnectionTimeout = STEAM2_CONNECT_TIMEOUT;
ContentServerClient.StorageSession session = GetSteam2StorageSession(contentServers, csClient, depotId, depotVersion);
if(session == null)

Loading…
Cancel
Save