summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2011-05-16 17:39:42 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2011-05-16 17:39:42 -0400
commitbde7cd91130ee91993f6b42863ac7ab6430bafd6 (patch)
tree11aae1916001c57ca3ff62b29e90f11874321ff4
parentdb05176138e6bf3e2011db1b5db4bc1b125d070f (diff)
sh-1491 WIP
-rwxr-xr-xindra/newview/llmeshrepository.cpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp
index 653fb46754..7d48416292 100755
--- a/indra/newview/llmeshrepository.cpp
+++ b/indra/newview/llmeshrepository.cpp
@@ -84,7 +84,7 @@ U32 LLMeshRepository::sPeakKbps = 0;
const U32 MAX_TEXTURE_UPLOAD_RETRIES = 5;
-void dumpLLSDToFile(LLSD& content, std::string filename);
+void dumpLLSDToFile(const LLSD& content, std::string filename);
std::string header_lod[] =
{
@@ -490,20 +490,13 @@ public:
mThread(thread)
{
}
- virtual void completedRaw(U32 status, const std::string& reason,
- const LLChannelDescriptors& channels,
- const LLIOPipe::buffer_ptr_t& buffer)
+ virtual void completed(U32 status,
+ const std::string& reason,
+ const LLSD& content)
{
//assert_main_thread();
llinfos << "completed" << llendl;
mThread->mPendingUploads--;
-
- LLSD content;
- LLBufferStream istr(channels, buffer.get());
- if (!LLSDSerialize::fromXML(content, istr))
- {
- llinfos << "Failed to deserialize LLSD. " << " [" << status << "]: " << reason << llendl;
- }
dumpLLSDToFile(content,"whole_model_response.xml");
}
};
@@ -1372,7 +1365,7 @@ void LLMeshUploadThread::run()
}
#if 1
-void dumpLLSDToFile(LLSD& content, std::string filename)
+void dumpLLSDToFile(const LLSD& content, std::string filename)
{
std::ofstream of(filename);
LLSDSerialize::toPrettyXML(content,of);
@@ -1562,6 +1555,9 @@ void LLMeshUploadThread::doWholeModelUpload()
mCurlRequest->process();
} while (mCurlRequest->getQueued() > 0);
+ delete mCurlRequest;
+ mCurlRequest = NULL;
+
// Currently a no-op.
mFinished = true;
}