Don't retrieve AppTickets as they aren't needed anymore

This commit is contained in:
Ryan Kistner committed 2017-12-01 00:09:19 -07:00
1 parent 6105a99e72
commit 184ea54020
3 files changed
+16 -4

No files matched your search

+2 -2
View File
@@ -129,7 +129,7 @@ namespace DepotDownloader
{
steamSession.RequestCDNAuthToken(appId, depotId, server.Host);
var cdnKey = string.Format("{0:D}:{1}", depotId, server.Host);
var cdnKey = string.Format("{0:D}:{1}", depotId, steamSession.ResolveCDNTopLevelHost(server.Host));
SteamApps.CDNAuthTokenCallback authTokenCallback;
if (steamSession.CDNAuthTokens.TryGetValue(cdnKey, out authTokenCallback))
@@ -175,7 +175,7 @@ namespace DepotDownloader
{
steamSession.RequestCDNAuthToken(appId, depotId, server.Host);
var cdnKey = string.Format("{0:D}:{1}", depotId, server.Host);
var cdnKey = string.Format("{0:D}:{1}", depotId, steamSession.ResolveCDNTopLevelHost(server.Host));
SteamApps.CDNAuthTokenCallback authTokenCallback;
if (steamSession.CDNAuthTokens.TryGetValue(cdnKey, out authTokenCallback))
+2 -2
View File
@@ -481,8 +481,8 @@ namespace DepotDownloader
return null;
}
if ( steam3 != null )
steam3.RequestAppTicket( ( uint )depotId );
// Skip requesting an app ticket
steam3.AppTickets[ depotId ] = null;
ulong manifestID = GetSteam3DepotManifest( depotId, appId, branch );
if ( manifestID == INVALID_MANIFEST_ID && branch != "public" )
+12
View File
@@ -313,8 +313,20 @@ namespace DepotDownloader
}, () => { return completed; } );
}
public string ResolveCDNTopLevelHost(string host)
{
// SteamPipe CDN shares tokens with all hosts
if (host.EndsWith( ".steampipe.steamcontent.com" ) )
{
return "steampipe.steamcontent.com";
}
return host;
}
public void RequestCDNAuthToken( uint appid, uint depotid, string host )
{
host = ResolveCDNTopLevelHost( host );
var cdnKey = string.Format( "{0:D}:{1}", depotid, host );
if ( CDNAuthTokens.ContainsKey( cdnKey ) || bAborted )