summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorMonty Brandenberg <monty@lindenlab.com>2012-07-10 16:56:38 -0400
committerMonty Brandenberg <monty@lindenlab.com>2012-07-10 16:56:38 -0400
commita5ba9c0eb327d2fb38a39560a34712e844a71a79 (patch)
tree8e4e38ad1a87c6a02fc6f9ac40395e0069dc4cfa /indra/newview
parent1c3af2658e30b672d658e1d208764a7e50cb7e5b (diff)
SH-3276 Handle 416 status back from texture fetches as okay.
A 416 will just mean there's no more data and whatever we have is complete.
Diffstat (limited to 'indra/newview')
-rwxr-xr-xindra/newview/lltexturefetch.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/indra/newview/lltexturefetch.cpp b/indra/newview/lltexturefetch.cpp
index a1f99eeb25..5c39504243 100755
--- a/indra/newview/lltexturefetch.cpp
+++ b/indra/newview/lltexturefetch.cpp
@@ -1364,6 +1364,10 @@ bool LLTextureFetchWorker::doWork(S32 param)
}
mState = SEND_HTTP_REQ;
acquireHttpSemaphore();
+
+ // *NOTE: You must invoke releaseHttpSemaphore() if you transition
+ // to a state other than SEND_HTTP_REQ or WAIT_HTTP_REQ or abort
+ // the request.
}
if (mState == WAIT_HTTP_RESOURCE2)
@@ -1486,13 +1490,16 @@ bool LLTextureFetchWorker::doWork(S32 param)
{
LL_INFOS_ONCE("Texture") << "Texture server busy (503): " << mUrl << LL_ENDL;
}
+ else if (http_not_sat == mGetStatus)
+ {
+ // Allowed, we'll accept whatever data we have as complete.
+ mHaveAllData = TRUE;
+ }
else
{
llinfos << "HTTP GET failed for: " << mUrl
<< " Status: " << mGetStatus.toHex()
<< " Reason: '" << mGetReason << "'"
- // *FIXME: Add retry info for reporting purposes...
- // << " Attempt:" << mHTTPFailCount+1 << "/" << max_attempts
<< llendl;
}
@@ -1839,7 +1846,7 @@ void LLTextureFetchWorker::onCompleted(LLCore::HttpHandle handle, LLCore::HttpRe
success = false;
std::string reason(status.toString());
setGetStatus(status, reason);
- llwarns << "CURL GET FAILED, status: " << status.toHex()
+ llwarns << "CURL GET FAILED, status: " << status.toHex()
<< " reason: " << reason << llendl;
}
else