Skip to content
This repository was archived by the owner on Jan 26, 2023. It is now read-only.
/ rdk-aamp Public archive

Commit cf93250

Browse files
Paulpandian MariappanGerrit Code Review
Paulpandian Mariappan
authored and
Gerrit Code Review
committed
Merge "DELIA-59431:Fog requesting fragments directly through TR causing server load" into stable2
2 parents b94e69c + ebceff8 commit cf93250

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

admanager_mpd.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ MPD* PrivateCDAIObjectMPD::GetAdMPD(std::string &manifestUrl, bool &finalManifes
562562
GrowableBuffer fogManifest;
563563
memset(&fogManifest, 0, sizeof(manifest));
564564
http_error = 0;
565-
566-
if((mAamp->GetFile(effectiveUrl, &fogManifest, effectiveUrl, &http_error, &downloadTime, NULL, eCURLINSTANCE_DAI)))
565+
mAamp->GetFile(effectiveUrl, &fogManifest, effectiveUrl, &http_error, &downloadTime, NULL, eCURLINSTANCE_DAI);
566+
if(200 == http_error || 204 == http_error)
567567
{
568568
manifestUrl = effectiveUrl;
569569
if(200 == http_error)

priv_aamp.cpp

+5-6
Original file line numberDiff line numberDiff line change
@@ -3999,15 +3999,14 @@ bool PrivateInstanceAAMP::GetFile(std::string remoteUrl,struct GrowableBuffer *b
39993999
effectiveUrlPtr = const_cast<char *>(httpRespHeaders[curlInstance].data.c_str());
40004000
}
40014001
}
4002-
//When Fog is having tsb write error , then it will respond back with 302 with direct CDN url,In this case alone TSB should be disabled
4003-
if(http_code == 302)
4004-
{
4005-
mTSBEnabled = false;
4006-
}
40074002
else
40084003
{
4004+
//When Fog is having tsb write error , then it will respond back with 302 with direct CDN url,In this case alone TSB should be disabled
4005+
if(mTSBEnabled && http_code == 302)
4006+
{
4007+
mTSBEnabled = false;
4008+
}
40094009
res = curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &effectiveUrlPtr);
4010-
40114010
if((simType == eMEDIATYPE_INIT_VIDEO || simType == eMEDIATYPE_INIT_AUDIO))
40124011
{
40134012
IsoBmffBuffer isobuf(mLogObj);

0 commit comments

Comments
 (0)