|
|
|
@ -57,9 +57,9 @@ namespace DepotDownloader
|
|
|
|
|
return cdnServers;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch (Exception)
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
DebugLog.WriteLine("CDNClientPool", "Failed to retrieve content server list");
|
|
|
|
|
Console.WriteLine("Failed to retrieve content server list: {0}", ex.Message);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -143,7 +143,7 @@ namespace DepotDownloader
|
|
|
|
|
{
|
|
|
|
|
client = null;
|
|
|
|
|
|
|
|
|
|
DebugLog.WriteLine("CDNClientPool", "Failed to connect to content server {0}: {1}", server, ex.Message);
|
|
|
|
|
Console.WriteLine("Failed to connect to content server {0}: {1}", server, ex.Message);
|
|
|
|
|
|
|
|
|
|
int penalty = 0;
|
|
|
|
|
ConfigStore.TheConfig.ContentServerPenalty.TryGetValue(server.Host, out penalty);
|
|
|
|
@ -151,7 +151,7 @@ namespace DepotDownloader
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DebugLog.WriteLine("CDNClientPool", "Initialized connection to content server {0} with depot id {1}", server, depotId);
|
|
|
|
|
Console.WriteLine("Initialized connection to content server {0} with depot id {1}", server, depotId);
|
|
|
|
|
|
|
|
|
|
activeClientAuthed[client] = Tuple.Create(depotId, server);
|
|
|
|
|
return client;
|
|
|
|
@ -177,7 +177,7 @@ namespace DepotDownloader
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
DebugLog.WriteLine("CDNClientPool", "Failed to reauth to content server {0}: {1}", server, ex.Message);
|
|
|
|
|
Console.WriteLine("Failed to reauth to content server {0}: {1}", server, ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
@ -202,11 +202,11 @@ namespace DepotDownloader
|
|
|
|
|
{
|
|
|
|
|
if (authData.Item2.Type == "CDN" && reauthConnection(client, authData.Item2, depotId, depotKey))
|
|
|
|
|
{
|
|
|
|
|
DebugLog.WriteLine("CDNClientPool", "Re-authed CDN connection to content server {0} from {1} to {2}", authData.Item2, authData.Item1, depotId);
|
|
|
|
|
Console.WriteLine("Re-authed CDN connection to content server {0} from {1} to {2}", authData.Item2, authData.Item1, depotId);
|
|
|
|
|
}
|
|
|
|
|
else if (authData.Item2.Type == "CS" && steamSession.AppTickets[depotId] == null && reauthConnection(client, authData.Item2, depotId, depotKey))
|
|
|
|
|
{
|
|
|
|
|
DebugLog.WriteLine("CDNClientPool", "Re-authed anonymous connection to content server {0} from {1} to {2}", authData.Item2, authData.Item1, depotId);
|
|
|
|
|
Console.WriteLine("Re-authed anonymous connection to content server {0} from {1} to {2}", authData.Item2, authData.Item1, depotId);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|