diff options
| author | Xiaohong Bao <bao@lindenlab.com> | 2011-06-20 14:01:32 -0600 | 
|---|---|---|
| committer | Xiaohong Bao <bao@lindenlab.com> | 2011-06-20 14:01:32 -0600 | 
| commit | aba4f7ddc89c9d28bdd4b02735134101f40634ed (patch) | |
| tree | 4182980e77f5e12e229ca3f166f8acbefec41e77 /indra/newview | |
| parent | f0369f3d2ceb39dcfb4eee06a12c4a8393cb026f (diff) | |
fix for SH-1870: can not upload book_collection_1.dae when include textures
Diffstat (limited to 'indra/newview')
| -rwxr-xr-x | indra/newview/app_settings/settings.xml | 11 | ||||
| -rwxr-xr-x | indra/newview/llmeshrepository.cpp | 10 | ||||
| -rw-r--r-- | indra/newview/llmeshrepository.h | 3 | 
3 files changed, 20 insertions, 4 deletions
| diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 76fecdf05e..52064c96f2 100755 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -5611,6 +5611,17 @@      <key>Value</key>      <real>0</real>    </map> +  <key>MeshUploadTimeOut</key> +  <map> +    <key>Comment</key> +    <string>Maximum time in seconds for llcurl to execute a mesh uoloading request</string> +    <key>Persist</key> +    <integer>1</integer> +    <key>Type</key> +    <string>S32</string> +    <key>Value</key> +    <real>600</real> +  </map>    <key>MigrateCacheDirectory</key>      <map>        <key>Comment</key> diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 6e0722bcf9..2b340fc54d 100755 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -1383,6 +1383,8 @@ LLMeshUploadThread::LLMeshUploadThread(LLMeshUploadThread::instance_list& data,  	mWholeModelFeeCapability = gAgent.getRegion()->getCapability("NewFileAgentInventory");  	mOrigin += gAgent.getAtAxis() * scale.magVec(); + +	mMeshUploadTimeOut = gSavedSettings.getS32("MeshUploadTimeOut") ;  }  LLMeshUploadThread::~LLMeshUploadThread() @@ -1686,7 +1688,7 @@ void LLMeshUploadThread::doWholeModelUpload()  	mPendingUploads++;  	LLCurlRequest::headers_t headers;  	mCurlRequest->post(mWholeModelFeeCapability, headers, model_data, -					   new LLWholeModelFeeResponder(this,model_data)); +					   new LLWholeModelFeeResponder(this,model_data), mMeshUploadTimeOut);  	do  	{ @@ -1705,7 +1707,7 @@ void LLMeshUploadThread::doWholeModelUpload()  		LLSD body = full_model_data["asset_resources"];  		dump_llsd_to_file(body,make_dump_name("whole_model_body_",dump_num));  		mCurlRequest->post(mWholeModelUploadURL, headers, body, -						   new LLWholeModelUploadResponder(this, model_data)); +						   new LLWholeModelUploadResponder(this, model_data), mMeshUploadTimeOut);  		do  		{  			mCurlRequest->process(); @@ -2874,7 +2876,7 @@ void LLMeshUploadThread::doUploadModel(LLMeshUploadData& data)  		LLCurlRequest::headers_t headers;  		mPendingUploads++; -		mCurlRequest->post(data.mRSVP, headers, data.mAssetData, new LLMeshUploadResponder(data, this)); +		mCurlRequest->post(data.mRSVP, headers, data.mAssetData, new LLMeshUploadResponder(data, this), mMeshUploadTimeOut);  	}  } @@ -2906,7 +2908,7 @@ void LLMeshUploadThread::doUploadTexture(LLTextureUploadData& data)  		LLCurlRequest::headers_t headers;  		mPendingUploads++; -		mCurlRequest->post(data.mRSVP, headers, data.mAssetData, new LLTextureUploadResponder(data, this)); +		mCurlRequest->post(data.mRSVP, headers, data.mAssetData, new LLTextureUploadResponder(data, this), mMeshUploadTimeOut);  	}  } diff --git a/indra/newview/llmeshrepository.h b/indra/newview/llmeshrepository.h index f237c3a60e..f56734a7de 100644 --- a/indra/newview/llmeshrepository.h +++ b/indra/newview/llmeshrepository.h @@ -356,6 +356,9 @@ public:  class LLMeshUploadThread : public LLThread   { +private: +	S32 mMeshUploadTimeOut ; //maximum time in seconds to execute an uploading request. +  public:  	class DecompRequest : public LLPhysicsDecomp::Request  	{ | 
