diff options
author | Dave Parks <davep@lindenlab.com> | 2011-07-08 23:32:30 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-07-08 23:32:30 -0500 |
commit | 7b102270f5bee9dbfd36a2afb5c6fc32a773abea (patch) | |
tree | 2a257483416643b7925bd7daf9037637ffd4cc72 /indra/newview/llmeshrepository.cpp | |
parent | dd6547a55e02a4340cb178c72acff1216a56f84c (diff) |
SH-2007 Don't eat an entire core when uploading meshes or requesting fee information.
Diffstat (limited to 'indra/newview/llmeshrepository.cpp')
-rwxr-xr-x | indra/newview/llmeshrepository.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 9e4b749ea1..2e5d65afaf 100755 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -1532,6 +1532,8 @@ void LLMeshUploadThread::doWholeModelUpload() do { mCurlRequest->process(); + //sleep for 10ms to prevent eating a whole core + apr_sleep(10000); } while (mCurlRequest->getQueued() > 0); } @@ -1562,6 +1564,8 @@ void LLMeshUploadThread::requestWholeModelFee() do { mCurlRequest->process(); + //sleep for 10ms to prevent eating a whole core + apr_sleep(10000); } while (mCurlRequest->getQueued() > 0); delete mCurlRequest; @@ -2018,10 +2022,9 @@ void LLMeshHeaderResponder::completedRaw(U32 status, const std::string& reason, if (remaining < 0 || remaining > 4096) { - llerrs << "Bad padding of mesh asset cache entry." << llendl; + llwarns << "Bad padding of mesh asset cache entry." << llendl; } - - if (remaining > 0) + else if (remaining > 0) { file.write(block, remaining); } |